-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 17 pull requests #57354
Rollup of 17 pull requests #57354
Commits on Dec 28, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 2149d73 - Browse repository at this point
Copy the full SHA 2149d73View commit details
Commits on Dec 29, 2018
-
Remove unused types from rustc::mir::interpret
The types are no longer used with the change to stacked borrows for validation.
Configuration menu - View commit details
-
Copy full SHA for 49e52e7 - Browse repository at this point
Copy the full SHA 49e52e7View commit details
Commits on Dec 30, 2018
-
Configuration menu - View commit details
-
Copy full SHA for afb7c06 - Browse repository at this point
Copy the full SHA afb7c06View commit details
Commits on Dec 31, 2018
-
Rename and fix nolink-with-link-args test
There are three problems with the nolink-with-link-args test: * The test fails when using MSVC. It's caused by the `linker-flavor=ld` flag which was added in rust-lang#46291. * In its comment, this test tests that "link_args are indeed passed when nolink is specified", but the `nolink` attribute has been removed [a long time ago](rust-lang#12826). * Pattern has a small typo. At first I was going to completely remove this test, but there is [a closed pull request for that](rust-lang#21090). So: * rename the file as suggested in the closed PR * adjust the comment * fix typo in the pattern * add `ignore-msvc`.
Configuration menu - View commit details
-
Copy full SHA for 794b81e - Browse repository at this point
Copy the full SHA 794b81eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f4826ab - Browse repository at this point
Copy the full SHA f4826abView commit details
Commits on Jan 1, 2019
-
Configuration menu - View commit details
-
Copy full SHA for d2c91a1 - Browse repository at this point
Copy the full SHA d2c91a1View commit details
Commits on Jan 2, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 0fd5003 - Browse repository at this point
Copy the full SHA 0fd5003View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3852dc8 - Browse repository at this point
Copy the full SHA 3852dc8View commit details -
Add a new cmpxchg16b intrinsics for x86_64!
Configuration menu - View commit details
-
Copy full SHA for c0662a0 - Browse repository at this point
Copy the full SHA c0662a0View commit details
Commits on Jan 3, 2019
-
I noticed a duplicated "be" somewhere in the code. A search for it manifested a couple more locations with the same problem. This change removes one of the "be"s.
Configuration menu - View commit details
-
Copy full SHA for a944ecf - Browse repository at this point
Copy the full SHA a944ecfView commit details -
VaList::copy should not require a mutable ref
VaList::copy does not need to take a mutable reference. The va_copy intrinsic takes a immutable reference.
Configuration menu - View commit details
-
Copy full SHA for 917985e - Browse repository at this point
Copy the full SHA 917985eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fb42cf - Browse repository at this point
Copy the full SHA 3fb42cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e3a560 - Browse repository at this point
Copy the full SHA 5e3a560View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1a42ea - Browse repository at this point
Copy the full SHA d1a42eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 190d139 - Browse repository at this point
Copy the full SHA 190d139View commit details
Commits on Jan 4, 2019
-
Configuration menu - View commit details
-
Copy full SHA for d60fa1d - Browse repository at this point
Copy the full SHA d60fa1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b55c79 - Browse repository at this point
Copy the full SHA 0b55c79View commit details -
Update src/librustc/ty/fold.rs
Co-Authored-By: wiktorkuchta <35867657+wiktorkuchta@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 632d584 - Browse repository at this point
Copy the full SHA 632d584View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06243b1 - Browse repository at this point
Copy the full SHA 06243b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1189ac - Browse repository at this point
Copy the full SHA a1189acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 480d0f3 - Browse repository at this point
Copy the full SHA 480d0f3View commit details -
librustc_mir: Make qualify_min_const_fn module public
Trying to write a `const_fn` lint for Clippy. @oli-obk suggested [here][link] to use the `is_min_const_fn` function from the `qualify_min_const_fn` module. However, the module is currently private and this commit makes it public. I lack any historical knowledge of the development of the `const_fn` feature, so I'm not sure if it was private on purpose or not. fwiw, all modules are already public except `qualify_min_const_fn`. [link]: rust-lang/rust-clippy#2440 (comment)
Configuration menu - View commit details
-
Copy full SHA for 79ea93c - Browse repository at this point
Copy the full SHA 79ea93cView commit details -
use
delay_span_bug
instead ofbug!
when doing layout sanity checkIt's possible that `is_object_safe` is called on a trait that is ill-formed, and we shouldn't ICE unless there are no errors being raised. Using `delay_span_bug` solves this. fixes rust-lang#56806
Configuration menu - View commit details
-
Copy full SHA for 2433526 - Browse repository at this point
Copy the full SHA 2433526View commit details
Commits on Jan 5, 2019
-
Rollup merge of rust-lang#57219 - matthewjasper:mir-cleanup, r=nikoma…
…tsakis Remove some unused code Closes rust-lang#57096
Configuration menu - View commit details
-
Copy full SHA for aa83481 - Browse repository at this point
Copy the full SHA aa83481View commit details -
Rollup merge of rust-lang#57229 - mikeyhew:fix-56806, r=varkor
Fix rust-lang#56806 by using `delay_span_bug` in object safety layout sanity checks It's possible that `is_object_safe` is called on a trait method that with an invalid receiver type. This caused an ICE in rust-lang#56806, because `receiver_is_dispatchable` returns `true` for `self: Box<dyn Trait>`, which causes one of the layout sanity checks in object_safety.rs to fail. Replacing `bug!` with `delay_span_bug` solves this. The fact that `receiver_is_dispatchable` returns `true` here could be considered a bug. It passes the check that the method implements, though: `Box<dyn Trait>` implements `DispatchFromDyn<Box<dyn Trait>>` because `dyn Trait` implements `Unsize<dyn Trait>`. It would be good to hear what @eddyb and @nikomatsakis think. Note that I only added a test for the case encountered in rust-lang#56806. I could not come up with a case that triggered an ICE from the other check, `bug!("receiver when Self = dyn Trait should be ScalarPair, found Scalar")`. There is no way, to my knowledge, that you can make `receiver_is_dispatchable` return true but still have a `Scalar` ABI when `Self = dyn Trait`. One other case I encountered while debugging rust-lang#56806 was that if you have a type parameter `T` that implements `Deref<Target=Self>` and `DispatchFromDyn<T>`, and use it as a method receiver, it will cause an ICE during `is_object_safe` because `T` has no layout ([playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=d9b7497b3be0ca8382fa7d9497263214)): ```rust trait Trait<T: Deref<Target=Self> + DispatchFromDyn<T>> { fn foo(self: T) -> dyn Trait<T>; } ``` I don't intend to remove the ICE there because it is a pathological case, especially since there is no way to implement `DispatchFromDyn<T>` for `T` — the checks in typeck/coherence/builtin.rs do not allow that. fixes rust-lang#56806 r? @varkor
Configuration menu - View commit details
-
Copy full SHA for 6c58b84 - Browse repository at this point
Copy the full SHA 6c58b84View commit details -
Rollup merge of rust-lang#57233 - Smibu:rename-and-fix-nolink-test, r…
…=alexcrichton Rename and fix nolink-with-link-args test There are three problems with the nolink-with-link-args test: * The test fails when using MSVC. It's caused by the `linker-flavor=ld` flag which was added in rust-lang#46291. * In its comment, this test tests that "link_args are indeed passed when nolink is specified", but the `nolink` attribute has been removed [a long time ago](rust-lang#12826). * Pattern has a small typo. At first I was going to completely remove this test, but there is [a closed pull request for that](rust-lang#21090). So: * rename the file as suggested in the closed PR * adjust the comment * fix typo in the pattern * add `ignore-msvc`. r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for 3d8e5d4 - Browse repository at this point
Copy the full SHA 3d8e5d4View commit details -
Rollup merge of rust-lang#57238 - Zoxc:bt-fix, r=alexcrichton
Fix backtraces for inlined functions on Windows Fixes an regression introduced in rust-lang#50526 r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for dd3e273 - Browse repository at this point
Copy the full SHA dd3e273View commit details -
Rollup merge of rust-lang#57249 - frewsxcv:frewsxcv-second-edition, r…
…=KodrAus Fix broken links to second edition TRPL. Fixes rust-lang#57104. Remove `second-edition/` from TRPL hyperlinks.
Configuration menu - View commit details
-
Copy full SHA for aa5fc74 - Browse repository at this point
Copy the full SHA aa5fc74View commit details -
Rollup merge of rust-lang#57267 - rust-lang:SimonSapin-patch-1, r=varkor
src/jemalloc is gone, remove its mention from COPYRIGHT The `src/jemalloc` submodule was removed in 61e8944 / rust-lang#55238.
Configuration menu - View commit details
-
Copy full SHA for 69d3c1a - Browse repository at this point
Copy the full SHA 69d3c1aView commit details -
Rollup merge of rust-lang#57273 - alexcrichton:update-stdsimd, r=niko…
…matsakis Update the stdsimd submodule Add a new cmpxchg16b intrinsics for x86_64 and some corrections for ARM/AArch64
Configuration menu - View commit details
-
Copy full SHA for 85ddc4d - Browse repository at this point
Copy the full SHA 85ddc4dView commit details -
Rollup merge of rust-lang#57278 - mati865:config_clippy, r=alexcrichton
Add Clippy to config.toml.example Omitted in rust-lang#51122 The order is based on https://github.com/rust-lang/rust/blob/ec194646fef1a467073ad74b8b68f6f202cfce97/src/bootstrap/install.rs#L212
Configuration menu - View commit details
-
Copy full SHA for f11f858 - Browse repository at this point
Copy the full SHA f11f858View commit details -
Rollup merge of rust-lang#57295 - d-e-s-o:topic/be-be, r=zackmdavis
Fix 'be be' constructs I noticed a duplicated "be" somewhere in the code. A search for it manifested a couple more locations with the same problem. This change removes one of the "be"s.
Configuration menu - View commit details
-
Copy full SHA for 952af5e - Browse repository at this point
Copy the full SHA 952af5eView commit details -
Rollup merge of rust-lang#57311 - dlrobertson:fix_valist_copy, r=KodrAus
VaList::copy should not require a mutable ref `VaList::copy` does not need to take a mutable reference. The `va_copy` intrinsic takes a immutable reference.
Configuration menu - View commit details
-
Copy full SHA for dfc1037 - Browse repository at this point
Copy the full SHA dfc1037View commit details -
Rollup merge of rust-lang#57312 - Mendess2526:master, r=Centril
`const fn` is no longer coming soon (const keyword docs) The `const` keyword [documentation](https://doc.rust-lang.org/std/keyword.const.html) mentions that `const fn`s are coming soon, but they have already been added.
Configuration menu - View commit details
-
Copy full SHA for e1a1ab0 - Browse repository at this point
Copy the full SHA e1a1ab0View commit details -
Rollup merge of rust-lang#57313 - Nemo157:box-to-pin, r=cramertj
Improve Box<T> -> Pin<Box<T>> conversion I found the `From` trait conversion for this very hard to find, having a named function for it is much more discoverable. Also fixes rust-lang#56256 as I need that in the place I'm using this. Has a placeholder tracking issue, will file an issue once I get feedback.
Configuration menu - View commit details
-
Copy full SHA for 676b0b0 - Browse repository at this point
Copy the full SHA 676b0b0View commit details -
Rollup merge of rust-lang#57314 - wiktorkuchta:master, r=Centril
Fix repeated word typos Inspired by rust-lang#57295 (I skipped 'be be' because of it) and my [PR in another repo ](cp-algorithms/cp-algorithms#389) Not a stupid `sed`, I actually tried to fix case by case.
Configuration menu - View commit details
-
Copy full SHA for ab55ecf - Browse repository at this point
Copy the full SHA ab55ecfView commit details -
Rollup merge of rust-lang#57326 - king6cong:doc, r=rkruppe
Doc rewording, use the same name `writer` None
Configuration menu - View commit details
-
Copy full SHA for a3afdd4 - Browse repository at this point
Copy the full SHA a3afdd4View commit details -
Rollup merge of rust-lang#57338 - QuietMisdreavus:doctest-file-name, …
…r=GuillaumeGomez rustdoc: force binary filename for compiled doctests Fixes rust-lang#57317, needed for rust-lang/rust-by-example#1137 Right now, when building a doctest, rustdoc provides the compiler an output directory (a temp dir) but lets the compiler name the executable. If the doctest needs to be executed, it then tries to run a binary named `rust_out` from that directory. For the most part, this works fine. However, if the doctest sets its own crate name, the compiler uses that name for the output binary instead. This causes rustdoc to try to execute a nonexistent binary, causing the test to fail. This PR changes the paths rustdoc gives to the compiler when building doctests to force the output *filename* instead of just the *directory*.
Configuration menu - View commit details
-
Copy full SHA for 284a419 - Browse repository at this point
Copy the full SHA 284a419View commit details -
Rollup merge of rust-lang#57342 - phansch:make_public, r=Centril
librustc_mir: Make qualify_min_const_fn module public Trying to write a `const_fn` lint for Clippy. @oli-obk suggested [here][link] to use the `is_min_const_fn` function from the `qualify_min_const_fn` module. However, the module is currently private and this commit makes it public. I lack any historical knowledge of the development of the `const_fn` feature, so I'm not sure if it was private on purpose or not. fwiw, all modules are already public except `qualify_min_const_fn`. r? @oli-obk [link]: rust-lang/rust-clippy#2440 (comment)
Configuration menu - View commit details
-
Copy full SHA for 06c07f9 - Browse repository at this point
Copy the full SHA 06c07f9View commit details -
Rollup merge of rust-lang#57343 - Xanewok:querify-access-levels, r=ni…
…komatsakis Calculate privacy access only via query Initially converted to query in rust-lang@a9f6bab and then changed to respect dependencies rust-lang@8281e88. I did this as an effort to prune `CrateAnalysis` from librustc_save_analysis, with the only thing remaining being the glob map (`name` is unused, existing `crate_name` is exposed in the compiler passes, instead). Since calculating the glob map is opt-in, it'd be great if we could calculate that on-demand. However, it seems that it'd require converting resolution to queries, which I'm not sure how to do yet. In an effort to get rid of `CrateAnalysis` altogether, could we try unconditionally calculating the glob_map in the resolver, thus completely removing `CrateAnalysis` struct, and doing a perf run? r? @nikomatsakis cc @petrochenkov do you have any idea how/if at all could we querify the resolver? I've stumbled upon a comment that's ~3? years old at the moment, so I'm guessing things might have changed and it actually may be feasible now. https://github.com/rust-lang/rust/blob/fe0c10019d7ee96909cc42cc265ef999a6b5dd70/src/librustc_driver/driver.rs#L589-L593
Configuration menu - View commit details
-
Copy full SHA for d9885c4 - Browse repository at this point
Copy the full SHA d9885c4View commit details