-
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 #45822
Rollup of 9 pull requests #45822
Commits on Oct 31, 2017
-
Configuration menu - View commit details
-
Copy full SHA for af1e4f6 - Browse repository at this point
Copy the full SHA af1e4f6View commit details
Commits on Nov 1, 2017
-
RwLock guards are Sync if T is
Currently, the compiler requires `T` to also be `Send`. There is no reason for that. `&Rw{Read,Write}LockGuard` only provides a shared referenced to `T`, sending that across threads is safe if `T` is `Sync`.
Configuration menu - View commit details
-
Copy full SHA for 71534c4 - Browse repository at this point
Copy the full SHA 71534c4View commit details
Commits on Nov 2, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 5687000 - Browse repository at this point
Copy the full SHA 5687000View commit details -
Configuration menu - View commit details
-
Copy full SHA for 283b4a1 - Browse repository at this point
Copy the full SHA 283b4a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a12f511 - Browse repository at this point
Copy the full SHA a12f511View commit details -
Configuration menu - View commit details
-
Copy full SHA for b86bba5 - Browse repository at this point
Copy the full SHA b86bba5View commit details
Commits on Nov 4, 2017
-
rustbuild: don't try to install rls if ToolState is not Testing
The Dist Step is not ran in that case so we would end up trying to install something that we didn't dist. Signed-off-by: Marc-Antoine Perennou <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 784528b - Browse repository at this point
Copy the full SHA 784528bView commit details
Commits on Nov 5, 2017
-
Update reference link in doc's 404
It's currently linking to a page that says it's on the page I'm changing the link too.
Configuration menu - View commit details
-
Copy full SHA for 6363b06 - Browse repository at this point
Copy the full SHA 6363b06View commit details -
rustdoc: add #[allow(unused)] to every doctest
also modify the order crate attributes are applied, to have a better order of how things can override lints, either per-crate or per-test
Configuration menu - View commit details
-
Copy full SHA for 5abc524 - Browse repository at this point
Copy the full SHA 5abc524View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce2768a - Browse repository at this point
Copy the full SHA ce2768aView commit details -
Pretty print parens around casts on the LHS of '<'
When pretty printing a cast expression occuring on the LHS of a '<' or '<<' expression, we should add parens around the cast. Otherwise, the '<'/'<<' gets interpreted as the beginning of the generics for the type on the RHS of the cast.
Configuration menu - View commit details
-
Copy full SHA for 45a0aa4 - Browse repository at this point
Copy the full SHA 45a0aa4View commit details -
Handle anon lifetime arg being returned with named lifetime return type
When there's a lifetime mismatch between an argument with an anonymous lifetime being returned in a method with a return type that has a named lifetime, show specialized lifetime error pointing at argument with a hint to give it an explicit lifetime matching the return type. ``` error[E0621]: explicit lifetime required in the type of `other` --> file2.rs:21:21 | 17 | fn bar(&self, other: Foo) -> Foo<'a> { | ----- consider changing the type of `other` to `Foo<'a>` ... 21 | other | ^^^^^ lifetime `'a` required ``` Follow up to rust-lang#44124 and rust-lang#42669.
Configuration menu - View commit details
-
Copy full SHA for de959af - Browse repository at this point
Copy the full SHA de959afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 005d14d - Browse repository at this point
Copy the full SHA 005d14dView commit details
Commits on Nov 6, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 3761c0d - Browse repository at this point
Copy the full SHA 3761c0dView commit details
Commits on Nov 7, 2017
-
Display all emission types in error msg if user inputs invalid option.
before: ``` > rustc --emit foo error: unknown emission type: `foo` ``` after: ``` > rustc --emit foo error: unknown emission type: `foo` - expected one of: `llvm-bc`, `asm`, `llvm-ir`, `mir`, `obj`, `metadata`, `link`, `dep-info` ```
Configuration menu - View commit details
-
Copy full SHA for c3ea358 - Browse repository at this point
Copy the full SHA c3ea358View commit details -
Configuration menu - View commit details
-
Copy full SHA for 805333b - Browse repository at this point
Copy the full SHA 805333bView commit details -
Configuration menu - View commit details
-
Copy full SHA for aa38a1e - Browse repository at this point
Copy the full SHA aa38a1eView commit details -
Rollup merge of rust-lang#45470 - GuillaumeGomez:unix-metadata-ext, r…
…=QuietMisdreavus add missing docs for MetadataExt r? @rust-lang/docs
Configuration menu - View commit details
-
Copy full SHA for 8074361 - Browse repository at this point
Copy the full SHA 8074361View commit details -
Rollup merge of rust-lang#45588 - Keruspe:master, r=alexcrichton
rustbuild: don't try to install rls if ToolState is not Testing We already do that for the Dist Step so we would end up trying to install something that we didn't dist.
Configuration menu - View commit details
-
Copy full SHA for 843dc4b - Browse repository at this point
Copy the full SHA 843dc4bView commit details -
Rollup merge of rust-lang#45682 - RalfJung:rwlock-guards, r=alexcrichton
RwLock guards are Sync if T is Currently, the compiler requires `T` to also be `Send`. There is no reason for that. `&Rw{Read,Write}LockGuard` only provides a shared referenced to `T`, sending that across threads is safe if `T` is `Sync`. Cc @oconnor663
Configuration menu - View commit details
-
Copy full SHA for eae3671 - Browse repository at this point
Copy the full SHA eae3671View commit details -
Rollup merge of rust-lang#45714 - sdroege:thread-panic-docs, r=dtolnay
Update the std::thread docs and clarify that panics can nowadays be caught
Configuration menu - View commit details
-
Copy full SHA for 264bfc4 - Browse repository at this point
Copy the full SHA 264bfc4View commit details -
Rollup merge of rust-lang#45751 - estebank:issue-44684, r=nikomatsakis
Handle anon lifetime arg being returned with named lifetime return type When there's a lifetime mismatch between an argument with an anonymous lifetime being returned in a method with a return type that has a named lifetime, show specialized lifetime error pointing at argument with a hint to give it an explicit lifetime matching the return type. ``` error[E0621]: explicit lifetime required in the type of `other` --> file2.rs:21:21 | 17 | fn bar(&self, other: Foo) -> Foo<'a> { | ----- consider changing the type of `other` to `Foo<'a>` ... 21 | other | ^^^^^ lifetime `'a` required ``` Follow up to rust-lang#44124 and rust-lang#42669. Fix rust-lang#44684.
Configuration menu - View commit details
-
Copy full SHA for d8238e4 - Browse repository at this point
Copy the full SHA d8238e4View commit details -
Rollup merge of rust-lang#45764 - QuietMisdreavus:rustdoc-doctest-lin…
…ts, r=GuillaumeGomez rustdoc: add #[allow(unused)] to every doctest More information in rust-lang#45750 - this is behavior that was documented but not actually implemented. I also reordered how outer attributes are applied to doctests. Previously, attributes from `#![doc(test(attr(...)))]` would be applied *after* attributes from within the test itself, meaning if a doctest tried to override lints that would be set crate-wide, it wouldn't work at all. This gives a better scope of how lints can be applied. Closes rust-lang#45750
Configuration menu - View commit details
-
Copy full SHA for 4b2a5da - Browse repository at this point
Copy the full SHA 4b2a5daView commit details -
Rollup merge of rust-lang#45778 - Havvy:patch-1, r=steveklabnik
Update reference link in doc's 404 It's currently linking to a page that says it's on the page I'm changing the link too.
Configuration menu - View commit details
-
Copy full SHA for 6c8a2f6 - Browse repository at this point
Copy the full SHA 6c8a2f6View commit details -
Rollup merge of rust-lang#45782 - frewsxcv:frewsxcv-shorthands-helper…
…s, r=manishearth Display all emission types in error msg if user inputs invalid option. before: ``` > rustc --emit foo error: unknown emission type: `foo` ``` after: ``` > rustc --emit foo error: unknown emission type: `foo` - expected one of: `llvm-bc`, `asm`, `llvm-ir`, `mir`, `obj`, `metadata`, `link`, `dep-info` ```
Configuration menu - View commit details
-
Copy full SHA for 1683b83 - Browse repository at this point
Copy the full SHA 1683b83View commit details -
Rollup merge of rust-lang#45784 - harpocrates:fix/print-parens-cast-l…
…t, r=kennytm Pretty print parens around casts on the LHS of `<`/`<<` When pretty printing a cast expression occuring on the LHS of a `<` or `<<` expression, we should add parens around the cast. Otherwise, the `<`/`<<` gets interpreted as the beginning of the generics for the type on the RHS of the cast. Consider: $ cat parens_cast.rs macro_rules! negative { ($e:expr) => { $e < 0 } } fn main() { negative!(1 as i32); } Before this PR, the output of the following is not valid Rust: $ rustc -Z unstable-options --pretty=expanded parens_cast.rs #![feature(prelude_import)] #![no_std] #[prelude_import] use std::prelude::v1::*; #[macro_use] extern crate std as std; macro_rules! negative(( $ e : expr ) => { $ e < 0 }); fn main() { 1 as i32 < 0; } After this PR, the output of the following is valid Rust: $ rustc -Z unstable-options --pretty=expanded parens_cast.rs #![feature(prelude_import)] #![no_std] #[prelude_import] use std::prelude::v1::*; #[macro_use] extern crate std as std; macro_rules! negative(( $ e : expr ) => { $ e < 0 }); fn main() { (1 as i32) < 0; } I've gone through several README/wiki style documents but I'm still not sure where to test this though. I'm not even sure if this sort of thing is tested...
Configuration menu - View commit details
-
Copy full SHA for 0d53ecd - Browse repository at this point
Copy the full SHA 0d53ecdView commit details