- 29 3月, 2013 15 次提交
-
-
由 Alex Crichton 提交于
Before, if anything in a list was used, the entire list was considered to be used. This corrects this and also warns on a span of the actual unused import instead of the entire list.
-
由 bors 提交于
@nikomatsakis pointed out that `fn read_option<T>(&self, f: &fn() -> T) -> Option<T>` should have this syntax so it can work with custom option types: `fn read_option<T>(&self, f: &fn(bool) -> T) -> T`. Also, this also includes some `#[inline(always)]` on the memory functions in `src/libcore/unstable/lang.rs` to reduce one level of indirection when allocating memory.
-
由 bors 提交于
Clean things up a bit. Also, allow selecting intel syntax in addition to the default AT&T dialect.
-
由 Luqman Aden 提交于
-
由 bors 提交于
-
由 bors 提交于
-
由 Marvin Löbel 提交于
-
由 bors 提交于
-
由 Erick Tryzelaar 提交于
This allows read_option to be used with a custom option type instead of just core::Option.
-
由 Erick Tryzelaar 提交于
As far as I can tell, this doesn't make rust compile any faster, but it does at least remove one level of indirection on malloc, which might help speed up some operations.
-
由 Brian Anderson 提交于
-
由 bors 提交于
r? @brson
-
由 bors 提交于
Previously the build system only checked for llvm-3.1 - 2.8. Now also 3.2 and 3.2svn is accepted. Signed-off-by: NFabian Deutsch <fabian.deutsch@gmx.de>
-
由 Brian Anderson 提交于
-
由 Patrick Walton 提交于
-
- 28 3月, 2013 25 次提交
-
-
由 bors 提交于
Fixes #5449.
-
由 bors 提交于
-
由 bors 提交于
-
由 bors 提交于
This is needed so that hash tables can require strict equality but not require types to be ordered. It's a subset of the functionality of `TotalOrd` so I made that inherit from `TotalEq`.
-
由 bors 提交于
r? @graydon
-
由 bors 提交于
auto merge of #5584 : nikomatsakis/rust/issue-4846-carry-bound-lifetime-names-in-fn-types, r=nikomatsakis Fix pretty-printer test failure by carrying the bound lifetime names through the types. Initially I thought it would be necessary to thread this data through not only the AST but the types themselves, but then I remembered that the pretty printer only cares about the AST. Regardless, I have elected to leave the changes to the types intact since they will eventually be needed. I left a few FIXMEs where it didn't seem worth finishing up since the code wasn't crucial yet.
-
由 bors 提交于
Impose a limit so that the typo suggester only shows reasonable suggestions (i.e. don't suggest `args` when the error is `foobar`). A tiny bit of progress on #2281.
-
由 bors 提交于
Hey folks, This patch series does some work on the json decoder, specifically with auto decoding of enums. Previously, we would take this code: ``` enum A { B, C(~str, uint) } ``` and would encode a value of this enum to either `["B", []]` or `["C", ["D", 123]]`. I've changed this to `"B"` or `["C", "D", 123]`. This matches the style of the O'Caml json library [json-wheel](http://mjambon.com/json-wheel.html). I've added tests to make sure all this work. In order to make this change, I added passing a `&[&str]` vec to `Decode::emit_enum_variant` so the json decoder can convert the name of a variant into it's position. I also changed the impl of `Encodable` for `Option<T>` to have the right upper casing. I also did some work on the parser, which allows for `fn foo<T: ::cmp::Eq>() { ... }` statements (#5572), fixed the pretty printer properly expanding `debug!("...")` expressions, and removed `ast::expr_vstore_fixed`, which doesn't appear to be used anymore.
-
由 bors 提交于
-
由 Andrew Paseltiner 提交于
-
由 bors 提交于
minor fix configure: cleanup - parsing supported target triples
-
由 Luqman Aden 提交于
-
由 bors 提交于
-
由 Tim Chevalier 提交于
from stackwalk::frame_address and net_tcp::on_tcp_read_cb As per #4425
-
由 Tim Chevalier 提交于
-
由 bors 提交于
This condition was added for cygwin support but appears to simply turn off the normalization of CPU types
-
由 Luqman Aden 提交于
-
由 Brian Anderson 提交于
This condition was added for cygwin support but appears to simply turn off the normalization of CPU types
-
由 Luqman Aden 提交于
-
由 Luqman Aden 提交于
-
由 Luqman Aden 提交于
-
由 Luqman Aden 提交于
-
由 Patrick Walton 提交于
-
由 bors 提交于
-
由 bors 提交于
-