-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 9 pull requests #40659
Rollup of 9 pull requests #40659
Commits on Mar 9, 2017
-
Configuration menu - View commit details
-
Copy full SHA for c7db40f - Browse repository at this point
Copy the full SHA c7db40fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 50aee36 - Browse repository at this point
Copy the full SHA 50aee36View commit details
Commits on Mar 15, 2017
-
make shift builtins panic-free with new unchecked_sh* intrinsics
Also update some 128 bit builtins to be panic-free without relying on the const evaluator.
Configuration menu - View commit details
-
Copy full SHA for cc23d17 - Browse repository at this point
Copy the full SHA cc23d17View commit details -
Configuration menu - View commit details
-
Copy full SHA for fee1f64 - Browse repository at this point
Copy the full SHA fee1f64View commit details -
Change json dumper (and a few other bits and pieces) to use rls-data …
…rather than its own data structures
Configuration menu - View commit details
-
Copy full SHA for a77e528 - Browse repository at this point
Copy the full SHA a77e528View commit details -
Use out-of-tree rustc serialize
And remove a few data structures in favour of rls-data ones
Configuration menu - View commit details
-
Copy full SHA for 83f84ff - Browse repository at this point
Copy the full SHA 83f84ffView commit details -
Add rls-span to do some conversions into rls-data.
And fix some warnings and borrow errors
Configuration menu - View commit details
-
Copy full SHA for bf07f1c - Browse repository at this point
Copy the full SHA bf07f1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 979a988 - Browse repository at this point
Copy the full SHA 979a988View commit details -
Taken from https://github.com/rust-lang/rust/pull/40347/files And update rls-span to a version with the rustbuild boilerplate
Configuration menu - View commit details
-
Copy full SHA for 2a3663f - Browse repository at this point
Copy the full SHA 2a3663fView commit details -
Move to using 0.1 versions of crates, rather than GH links
Also adds a fixme and does cargo update
Configuration menu - View commit details
-
Copy full SHA for dc63eff - Browse repository at this point
Copy the full SHA dc63effView commit details -
Change how the
0
flag works in format!Now it always implies right-alignment, so that padding zeroes are placed after the sign (if any) and before the digits. In other words, it always takes precedence over explicitly specified `[[fill]align]`. This also affects the '#' flag: zeroes are placed after the prefix (0b, 0o, 0x) and before the digits. :05 :<05 :>05 :^05 before |-0001| |-1000| |-0001| |-0100| after |-0001| |-0001| |-0001| |-0001| :#05x :<#05x :>#05x :^#05x before |0x001| |0x100| |000x1| |0x010| after |0x001| |0x001| |0x001| |0x001| Fixes rust-lang#39997 [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for ff63866 - Browse repository at this point
Copy the full SHA ff63866View commit details -
Change how the 0 flag works in format! for floats
Now it always implies right-alignment, so that padding zeroes are placed after the sign (if any) and before the digits. In other words, it always takes precedence over explicitly specified `[[fill]align]`. :06 :<06 :>06 :^06 before |-001.2| |-1.200| |-001.2| |-01.20| after |-001.2| |-001.2| |-001.2| |-001.2|
Configuration menu - View commit details
-
Copy full SHA for 8065486 - Browse repository at this point
Copy the full SHA 8065486View commit details -
Rename TryFrom's associated type and implement str::parse using TryFrom.
Per discussion on the tracking issue, naming `TryFrom`'s associated type `Error` is generally more consistent with similar traits in the Rust ecosystem, and what people seem to assume it should be called. It also helps disambiguate from `Result::Err`, the most common "Err". See rust-lang#33417 (comment). TryFrom<&str> and FromStr are equivalent, so have the latter provide the former to ensure that. Using TryFrom in the implementation of `str::parse` means types that implement either trait can use it. When we're ready to stabilize `TryFrom`, we should update `FromStr` to suggest implementing `TryFrom<&str>` instead for new code. See rust-lang#33417 (comment) and rust-lang#33417 (comment). Refs rust-lang#33417.
Configuration menu - View commit details
-
Copy full SHA for 2561dcd - Browse repository at this point
Copy the full SHA 2561dcdView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce616a7 - Browse repository at this point
Copy the full SHA ce616a7View commit details
Commits on Mar 16, 2017
-
Configuration menu - View commit details
-
Copy full SHA for a5cf551 - Browse repository at this point
Copy the full SHA a5cf551View commit details -
Configuration menu - View commit details
-
Copy full SHA for 449219a - Browse repository at this point
Copy the full SHA 449219aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 222ca3c - Browse repository at this point
Copy the full SHA 222ca3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 95bd7f2 - Browse repository at this point
Copy the full SHA 95bd7f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d93a6c - Browse repository at this point
Copy the full SHA 1d93a6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5364acb - Browse repository at this point
Copy the full SHA 5364acbView commit details
Commits on Mar 18, 2017
-
Configuration menu - View commit details
-
Copy full SHA for e16d286 - Browse repository at this point
Copy the full SHA e16d286View commit details
Commits on Mar 20, 2017
-
Rollup merge of rust-lang#40241 - Sawyer47:fix-39997, r=alexcrichton
Change how the `0` flag works in format! Now it always implies right-alignment, so that padding zeroes are placed after the sign (if any) and before the digits. In other words, it always takes precedence over explicitly specified `[[fill]align]`. This also affects the '#' flag: zeroes are placed after the prefix (0b, 0o, 0x) and before the digits. Here's a short summary of how similar format strings work in Python and Rust: ``` :05 :<05 :>05 :^05 Python 3.6 |-0001| |-1000| |000-1| |0-100| Rust before |-0001| |-1000| |-0001| |-0100| Rust after |-0001| |-0001| |-0001| |-0001| :#05x :<#05x :>#05x :^#05x Python 3.6 |0x001| |0x100| |000x1| |00x10| Rust before |0x001| |0x100| |000x1| |0x010| Rust after |0x001| |0x001| |0x001| |0x001| ``` Fixes rust-lang#39997 [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for e5221f9 - Browse repository at this point
Copy the full SHA e5221f9View commit details -
Rollup merge of rust-lang#40281 - jimmycuadra:try-from-from-str, r=at…
…uron Rename TryFrom's associated type and implement str::parse using TryFrom. Per discussion on the tracking issue, naming `TryFrom`'s associated type `Error` is generally more consistent with similar traits in the Rust ecosystem, and what people seem to assume it should be called. It also helps disambiguate from `Result::Err`, the most common "Err". See rust-lang#33417 (comment). `TryFrom<&str>` and `FromStr` are equivalent, so have the latter provide the former to ensure that. Using `TryFrom` in the implementation of `str::parse` means types that implement either trait can use it. When we're ready to stabilize `TryFrom`, we should update `FromStr` to suggest implementing `TryFrom<&str>` instead for new code. See rust-lang#33417 (comment) and rust-lang#33417 (comment). Refs rust-lang#33417.
Configuration menu - View commit details
-
Copy full SHA for 573e906 - Browse repository at this point
Copy the full SHA 573e906View commit details -
Rollup merge of rust-lang#40398 - eddyb:struct-hint, r=nikomatsakis
Propagate expected type hints through struct literals. Partial fix for rust-lang#31260 to maximize backwards-compatibility, i.e. the hint is provided but not coerced to. The added test works because `{...; x}` with a hint of `T` coerces `x` to `T`, and the reasoning why that is slightly different has to do with DSTs: `&Struct { tail: [x] }: &Struct<[T]>` has a hint of `[T]` for `[x]`, but the inferred type should be `[T; 1]` to succeed later, so `[x]` shouldn't be *forced* to be `[T]`. *However*, implementing that complete behavior in a backwards-compatible way may be non-trivial, and has not yet been fully investigated, while this PR fixes rust-lang#40355 and can be backported. r? @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for 6480a00 - Browse repository at this point
Copy the full SHA 6480a00View commit details -
Rollup merge of rust-lang#40521 - TimNN:panic-free-shift, r=alexcrichton
Implemente overflowing_sh* with new unchecked_sh* intrinsics Also update some 128 bit builtins to not rely on the constant evaluator to avoid checked operations. Fixes rust-lang#40508. cc @nagisa, @alexcrichton Note: I still have a build running to see if the 128 bit changes worked (unoptimized builds take *forever* to compile), however at least the overflowing builtins no longer reference `core::panicking::panic`.
Configuration menu - View commit details
-
Copy full SHA for 1d1543d - Browse repository at this point
Copy the full SHA 1d1543dView commit details -
Rollup merge of rust-lang#40532 - jseyfried:improve_tokenstream_quote…
…r, r=nrc macros: improve the `TokenStream` quoter This PR - renames the `TokenStream` quoter from `qquote!` to `quote!`, - uses `$` instead of `unquote` (e.g. `let toks: TokenStream = ...; quote!([$toks])`), - allows unquoting `Token`s as well as `TokenTree`s and `TokenStream`s (fixes rust-lang#39746), and - to preserve syntactic space, requires that `$` be followed by - a single identifier to unquote, or - another `$` to produce a literal `$`. r? @nrc
Configuration menu - View commit details
-
Copy full SHA for 7471d97 - Browse repository at this point
Copy the full SHA 7471d97View commit details -
Rollup merge of rust-lang#40554 - nrc:rls-data, r=alexcrichton
Use rls-data crate This basically pulls out a bunch of data structures used by save-analysis for serialization into an external crate, and pulls that crate in using Rustbuild. The RLS can then share these data structures with the compiler which in some cases will allow more efficient communication between the compiler and the RLS (i.e., without serialisation). Along the way, I have to pull in rls-span, which is the RLS's way of defining spans (more type-safe than the compiler's built-in way). This is basically just to convert from compiler spans to RLS spans. I also pull in the crates.io version of rustc-serialize, which is a bit annoying, but seems to be the only way to have serialisable data in an external crate. To make this work, all of the save-analysis crate has to use this version too (cc rust-lang#40527). Finally I pull in a line from rust-lang#40347 to make the unstable crate checking stuff working. There are a lot of changes to save-analysis but they are all mechanical and trivial - changing from using `From` to `Into` (because of orphan rules) being the main thing. r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for dedf9d3 - Browse repository at this point
Copy the full SHA dedf9d3View commit details -
Rollup merge of rust-lang#40566 - clarcharr:never_error, r=sfackler
Implement std::error::Error for !.
Configuration menu - View commit details
-
Copy full SHA for 4e90331 - Browse repository at this point
Copy the full SHA 4e90331View commit details -
Rollup merge of rust-lang#40581 - TimNN:di-global-40, r=alexcrichton
[LLVM 4.0] Add missing debuginfo metadata to globals Fixes rust-lang#40580. cc @rkruppe cc rust-lang#40123
Configuration menu - View commit details
-
Copy full SHA for de724ba - Browse repository at this point
Copy the full SHA de724baView commit details -
Rollup merge of rust-lang#40587 - GuillaumeGomez:rustdoc-const-displa…
…y, r=frewsxcv Fix invalid debug display for associated consts Fixes rust-lang#40568. r? @rust-lang/docs cc @SergioBenitez
Configuration menu - View commit details
-
Copy full SHA for d49f869 - Browse repository at this point
Copy the full SHA d49f869View commit details