-
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 16 pull requests #52344
Rollup of 16 pull requests #52344
Commits on Jul 1, 2018
-
Provide llvm-strip in llvm-tools component
Shipping this tool gives people reliable way to reduce the generated executable size. I'm not sure if this strip tool is available from the llvm version current rust is built on. But let's take a look. @japaric
Configuration menu - View commit details
-
Copy full SHA for de2ecea - Browse repository at this point
Copy the full SHA de2eceaView commit details
Commits on Jul 4, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 6035534 - Browse repository at this point
Copy the full SHA 6035534View commit details
Commits on Jul 8, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 2c2add6 - Browse repository at this point
Copy the full SHA 2c2add6View commit details
Commits on Jul 9, 2018
-
Add a basic test to
Option::replace
Clément RENAULT committedJul 9, 2018 Configuration menu - View commit details
-
Copy full SHA for af87a35 - Browse repository at this point
Copy the full SHA af87a35View commit details -
Fix the documentation of
Option::replace
Clément RENAULT committedJul 9, 2018 Configuration menu - View commit details
-
Copy full SHA for c8f0e6f - Browse repository at this point
Copy the full SHA c8f0e6fView commit details
Commits on Jul 12, 2018
-
Add UI tests for diagnostics comparing types
They highlight how types are displayed in those cases, and will show how the current output is altered by the next patch.
Configuration menu - View commit details
-
Copy full SHA for 5336df7 - Browse repository at this point
Copy the full SHA 5336df7View commit details -
Don't display default generic parameters in diagnostics that compare …
…types. Fixes rust-lang#52097
Configuration menu - View commit details
-
Copy full SHA for b5c2b79 - Browse repository at this point
Copy the full SHA b5c2b79View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d7b2e6 - Browse repository at this point
Copy the full SHA 0d7b2e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f29ac5a - Browse repository at this point
Copy the full SHA f29ac5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0878453 - Browse repository at this point
Copy the full SHA 0878453View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21d9ac1 - Browse repository at this point
Copy the full SHA 21d9ac1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5058af7 - Browse repository at this point
Copy the full SHA 5058af7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e93de95 - Browse repository at this point
Copy the full SHA e93de95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c340a2 - Browse repository at this point
Copy the full SHA 4c340a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72f096b - Browse repository at this point
Copy the full SHA 72f096bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ead0d8 - Browse repository at this point
Copy the full SHA 9ead0d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f4e91a - Browse repository at this point
Copy the full SHA 4f4e91aView commit details
Commits on Jul 13, 2018
-
dead-code lint: say "constructed", "called" for structs, functions
Respectively. This is a sequel to November 2017's rust-lang#46103 / 1a9dc2e. It had been reported (more than once—at least rust-lang#19140, rust-lang#44083, and rust-lang#44565) that the "never used" language was confusing for enum variants that were "used" as match patterns, so the wording was changed to say never "constructed" specifically for enum variants. More recently, the same issue was raised for structs (rust-lang#52325). It seems consistent to say "constructed" here, too, for the same reasons. While we're here, we can also use more specific word "called" for unused functions and methods. (We declined to do this in rust-lang#46103, but the rationale given in the commit message doesn't actually make sense.) This resolves rust-lang#52325.
Configuration menu - View commit details
-
Copy full SHA for 8cc4fd6 - Browse repository at this point
Copy the full SHA 8cc4fd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f8eb9a6 - Browse repository at this point
Copy the full SHA f8eb9a6View commit details -
Reimplement some "add
mut
" suggestions under NLLSpecifically, `&self` -> `&mut self` and explicit `ref` -> `ref mut`. Implicit `ref` isn't handled yet and causes an ICE.
Configuration menu - View commit details
-
Copy full SHA for 52d6ae8 - Browse repository at this point
Copy the full SHA 52d6ae8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fd1a9f - Browse repository at this point
Copy the full SHA 6fd1a9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b8b04f6 - Browse repository at this point
Copy the full SHA b8b04f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73a979a - Browse repository at this point
Copy the full SHA 73a979aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 77d5f39 - Browse repository at this point
Copy the full SHA 77d5f39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 246caea - Browse repository at this point
Copy the full SHA 246caeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e5d228 - Browse repository at this point
Copy the full SHA 4e5d228View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1662daa - Browse repository at this point
Copy the full SHA 1662daaView commit details -
Configuration menu - View commit details
-
Copy full SHA for af5edc3 - Browse repository at this point
Copy the full SHA af5edc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 212da12 - Browse repository at this point
Copy the full SHA 212da12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8932684 - Browse repository at this point
Copy the full SHA 8932684View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a70140 - Browse repository at this point
Copy the full SHA 7a70140View commit details -
Configuration menu - View commit details
-
Copy full SHA for 323df7b - Browse repository at this point
Copy the full SHA 323df7bView commit details -
Factor out suggest_ref_mut; use it in rustc_borrowck
Also teach rustc_borrowck not to show useless help messages like "use a mutable reference instead: `x`".
Configuration menu - View commit details
-
Copy full SHA for 531a68c - Browse repository at this point
Copy the full SHA 531a68cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ed8619 - Browse repository at this point
Copy the full SHA 1ed8619View commit details -
Rollup merge of rust-lang#51962 - crlf0710:patch-2, r=alexcrichton
Provide llvm-strip in llvm-tools component Shipping this tool gives people reliable way to reduce the generated executable size. I'm not sure if this strip tool is available from the llvm version current rust is built on. But let's take a look. @japaric
Configuration menu - View commit details
-
Copy full SHA for 030d60c - Browse repository at this point
Copy the full SHA 030d60cView commit details -
Rollup merge of rust-lang#52003 - Kerollmops:option-replace, r=Kimundi
Implement `Option::replace` in the core library Here is the implementation of the `Option::replace` method. The first step of [the tracking issue rust-lang#51998](rust-lang#51998).
Configuration menu - View commit details
-
Copy full SHA for 20176fe - Browse repository at this point
Copy the full SHA 20176feView commit details -
Rollup merge of rust-lang#52156 - zajlerke:update-deprecation-notice,…
… r=Kimundi Update std::ascii::ASCIIExt deprecation notes Fixes rust-lang#52085
Configuration menu - View commit details
-
Copy full SHA for b16bad6 - Browse repository at this point
Copy the full SHA b16bad6View commit details -
Rollup merge of rust-lang#52242 - ashtneoi:suggest-ref-mut, r=pnkfelix
NLL: Suggest `ref mut` and `&mut self` Fixes rust-lang#51244. Supersedes rust-lang#51249, I think. Under the old lexical lifetimes, the compiler provided helpful suggestions about adding `mut` when you tried to mutate a variable bound as `&self` or (explicit) `ref`. NLL doesn't have those suggestions yet. This pull request adds them. I didn't bother making the help text exactly the same as without NLL, but I can if that's important. (Originally this was supposed to be part of rust-lang#51612, but I got bogged down trying to fit everything in one PR.)
Configuration menu - View commit details
-
Copy full SHA for 7b75c00 - Browse repository at this point
Copy the full SHA 7b75c00View commit details -
Rollup merge of rust-lang#52244 - glandium:issue52097, r=estebank
Don't display default generic parameters in diagnostics that compare types In errors like: ``` expected type: `RawVec<foo, Global>` found type: `foo` ``` `RawVec` being defined as `RawVec<T, A: Alloc = Global>`, the error is better written as ``` expected type: `RawVec<foo>` found type: `foo` ``` In fact, that is already what happens when `foo` is not an ADT, because in that case, the diagnostic handler doesn't try to highlight something, and just uses the `Display` trait instead of its own logic. e.g. ``` expected type: `RawVec<usize>` found type: `usize` ```
Configuration menu - View commit details
-
Copy full SHA for 24738ba - Browse repository at this point
Copy the full SHA 24738baView commit details -
Rollup merge of rust-lang#52290 - ljedrz:dyn_librustc_save_analysis, …
…r=cramertj Deny bare trait objects in src/librustc_save_analysis Enforce `#![deny(bare_trait_objects)]` in `src/librustc_save_analysis`.
Configuration menu - View commit details
-
Copy full SHA for 464ed4d - Browse repository at this point
Copy the full SHA 464ed4dView commit details -
Rollup merge of rust-lang#52293 - ljedrz:dyn_librustc_typeck, r=estebank
Deny bare trait objects in librustc_typeck Enforce `#![deny(bare_trait_objects)]` in `src/librustc_typeck`.
Configuration menu - View commit details
-
Copy full SHA for 76eed24 - Browse repository at this point
Copy the full SHA 76eed24View commit details -
Rollup merge of rust-lang#52299 - ljedrz:dyn_libserialize, r=cramertj
Deny bare trait objects in src/libserialize Enforce `#![deny(bare_trait_objects)]` in `src/libserialize`.
Configuration menu - View commit details
-
Copy full SHA for 90a21a1 - Browse repository at this point
Copy the full SHA 90a21a1View commit details -
Rollup merge of rust-lang#52300 - ljedrz:dyn_target_test, r=Mark-Simu…
…lacrum Deny bare trait objects in librustc_target and libtest Enforce `#![deny(bare_trait_objects)]` in `src/librustc_target` and `src/libtest`.
Configuration menu - View commit details
-
Copy full SHA for 6167181 - Browse repository at this point
Copy the full SHA 6167181View commit details -
Rollup merge of rust-lang#52302 - ljedrz:dyn_futureproofing, r=cramertj
Deny bare trait objects in the rest of rust Add `#![deny(bare_trait_objects)]` to all the modules not covered before (those did not require code changes) that I consider applicable (I left out shims) in order to futureproof them.
Configuration menu - View commit details
-
Copy full SHA for cf5eebf - Browse repository at this point
Copy the full SHA cf5eebfView commit details -
Rollup merge of rust-lang#52310 - Mark-Simulacrum:release-notes-backp…
…ort-from-stable, r=pietroalbini Backport 1.27.1 release notes to master r? @pietroalbini
Configuration menu - View commit details
-
Copy full SHA for fed8105 - Browse repository at this point
Copy the full SHA fed8105View commit details -
Rollup merge of rust-lang#52314 - varkor:issue-52023, r=oli-obk
Fix ICE when using a pointer cast as array size Fixes rust-lang#52023. I'm not sure if the comment rust-lang#52023 (comment) suggested we also emit `E0080`, but just emitting `E0018` seems reasonable for now. r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for 102ed77 - Browse repository at this point
Copy the full SHA 102ed77View commit details -
Rollup merge of rust-lang#52315 - ljedrz:FIXME_#27942, r=petrochenkov
Resolve FIXME(rust-lang#27942) [related issue](rust-lang#27942) cc [rust-lang#44366](rust-lang#44366)
Configuration menu - View commit details
-
Copy full SHA for 82da5ce - Browse repository at this point
Copy the full SHA 82da5ceView commit details -
Rollup merge of rust-lang#52316 - seanmonstar:waker-unsafety, r=cramertj
task: remove wrong comments about non-existent LocalWake trait ~~A `LocalWaker` is specifically `!Send `, and the unsafety comment around `LocalWaker::new` only specifies that it be safe to call `wake_local`. One could then accidentally promote a `LocalWaker` into a `Waker`, which is universally `Send`, simply via `Waker::from(local_waker)`. A `LocalWaker` the was built expecting to not be `Send`, such as using `Rc`, could be sent to other threads safely.~~ ~~Separately, though somewhat related, `Context` holds a `&LocalWaker` internally, and exposes a `waker() -> &Waker` method. This simply transmutes the `&LocalWaker` to `&Waker`, which would be unsound, except that you can't "send" a `&Waker`, you'd need to clone it first. Since `UnsafeWake::clone_raw` requires that it return a `Waker`, the transmute is not unsound. The transmuted `LocalWaker` will be promoted to a `Waker` correctly.~~ ~~That would mean that if `UnsafeWake::clone_raw` were to be changed, such as returning `Self` instead of `Waker`, this would no longer be sound. Thus, this also adds a comment to `clone_raw` to remember this.~~ r? @cramertj
Configuration menu - View commit details
-
Copy full SHA for 0bba879 - Browse repository at this point
Copy the full SHA 0bba879View commit details -
Rollup merge of rust-lang#52322 - varkor:llvm-7-rebuild-trigger, r=al…
…excrichton Update llvm-rebuild-trigger in light of LLVM 7 upgrade Not triggering a LLVM rebuild [since the LLVM 7 upgrade](rust-lang#51966 (comment)) causes builds of rustc to fail. r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for a1b9b6a - Browse repository at this point
Copy the full SHA a1b9b6aView commit details -
Rollup merge of rust-lang#52332 - zackmdavis:dead_code_lint_should_sa…
…y_2_electric_boogaloo, r=pnkfelix dead-code lint: say "constructed", "called" for structs, functions Respectively. This is a sequel to November 2017's rust-lang#46103 / 1a9dc2e. It had been reported (more than once—at least rust-lang#19140, rust-lang#44083, and rust-lang#44565) that the "never used" language was confusing for enum variants that were "used" as match patterns, so the wording was changed to say never "constructed" specifically for enum variants. More recently, the same issue was raised for structs (rust-lang#52325). It seems consistent to say "constructed" here, too, for the same reasons. While we're here, we can also use more specific word "called" for unused functions and methods. (We declined to do this in rust-lang#46103, but the rationale given in the commit message doesn't actually make sense.) This resolves rust-lang#52325.
Configuration menu - View commit details
-
Copy full SHA for 9dff778 - Browse repository at this point
Copy the full SHA 9dff778View commit details