- 09 5月, 2013 14 次提交
-
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
-
由 bors 提交于
At the moment this only includes type checking and there is no code generation support yet. I wanted to get the design reviewed first. From discussion with @graydon at #5841, re-implemented as `#[simd]` attribute on structs. Progressing towards #3499.
-
由 bors 提交于
r? @ILyoan This pulls all the logic for discovering the crate entry point into a new pass (out of resolve and typeck), then changes it so that main is only looked for at the crate level (`#[main]` can still be used anywhere). I don't understand the special android logic here and worry that I may have broken it.
-
由 Brian Anderson 提交于
I don't understand what this logic is doing
-
由 bors 提交于
-
- 08 5月, 2013 26 次提交
-
-
由 bors 提交于
There's no need to delegate to C to call the Rust main function.
-
由 bors 提交于
This "finishes" the generic deriving code (which I started in #5640), in the sense it supports everything that I can think of being useful. (Including lifetimes and type parameters on methods and traits, arguments and return values of (almost) any type, static methods.) It closes #6149, but met with #6257, so the following doesn't work: ```rust #[deriving(TotalEq)] struct Foo<'self>(&'self int); ``` (It only fails for `TotalOrd`, `TotalEq` and `Clone`, since they are the only ones that call a method directly on sub-elements of the type, which means that the auto-deref interferes with the pointer.) It also makes `Rand` (chooses a random variant, fills the fields with random values, including recursively for recursive types) and `ToStr` (`x.to_str()` is the same as `fmt!("%?", x)`) derivable, as well as converting IterBytes to the generic code (which made the code 2.5x shorter, more robust and added support for tuple structs). ({En,De}codable are trickier, so I'll convert them over later.)
-
由 Huon Wilson 提交于
-
由 bors 提交于
-
由 bors 提交于
#6312
-
由 bors 提交于
When, occasionally, trying to read directory instead of file, `fread()` returns `EISDIR` error. And, considering, absence of error handling, `read_whole_stream()` just loops indefinitely.
-
由 Zack Corr 提交于
-
由 bors 提交于
Lift restriction on calling extern C functions, and propagate the ABI as part of the type of an extern fn. cc #3678
-
由 bors 提交于
Closes #6280
-
由 bors 提交于
-
由 bors 提交于
-
由 Brian Anderson 提交于
There's no need to delegate to C to call the Rust main function.
-
由 Seo Sanghyeon 提交于
-
由 ILyoan 提交于
-
由 bors 提交于
existing tests. The bug itself was fixed as part of recent borrowck reform. Fixes #4666.
-
由 bors 提交于
`colorcolumn` is now set with `setlocal`, so it doesn't infect the entire session. `conceal` support is now opt-in, not opt-out. I haven't found anybody that likes it or cares either way. The indent file now uses `cindent` with appropriate `cinoptions` and `cinkeys`. Auto-indenting an entire file mostly gets the right thing now, with structs and enums not being affects like before. Defaults to the hanging indent style, unless the first argument is on a new line. There were some keywords in the syntax file that I've never seen (and have been used as identifiers in some tests) so they have been commented out.
-
由 Sangeun Kim 提交于
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
由 bors 提交于
When autoborrowing a fn in trans, adjust the type of the datum to be `&fn`. Fixes #6141. r? @brson
-
由 bors 提交于
This is part of the redesign of the numeric traits tracked in issue #4819. Renamed: - `Exponential::expm1` -> `Float::exp_m1` - for consistency with underscore usage elsewhere - `Exponential::log` -> `Exponential::ln` - a less ambiguous name for the natural logarithm - `{float, f64, f32}::logarithm` -> `Exponential::log` - for arbitrary base logarithms - `Real::log_2` -> `Real::ln_2` - for consistency with `ln` - `Real::log_10` -> `Real::ln_10` - for consistency with `ln` Added: - `Signed::abs_sub` - wraps libm's `fdim` function - `Float::is_normal` - returns `true` if the number is neither zero, infinite, subnormal or NaN - `Float::classify` - returns the floating point category of the number - `Float::ln_1p` - returns the natural logarithm of the number plus one
-
由 James Miller 提交于
Makes colorcolumn setlocal instead of set. Makes conceal opt-in. Removes the seem-to-be obsolete old keywords/types
-
由 James Miller 提交于
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
由 bors 提交于
fix for #6279 #6253 mk: rt.mk regression patch for mingw32 after #6176 currently do not pass optimization option just make it works only mk: target.mk host.mk fix for duplicated rules of mingw32 after #6235 It can be simply fixed with CFG_LIB check whether bin or lib however considering multiple target triples with linux and windows, CFG_LIB needs to configurable #5223 and #5577
-