-
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 14 pull requests #66366
Rollup of 14 pull requests #66366
Commits on Nov 4, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 7550b61 - Browse repository at this point
Copy the full SHA 7550b61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ce3e1d - Browse repository at this point
Copy the full SHA 6ce3e1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 23be25c - Browse repository at this point
Copy the full SHA 23be25cView commit details
Commits on Nov 6, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 0282c27 - Browse repository at this point
Copy the full SHA 0282c27View commit details
Commits on Nov 7, 2019
-
Configuration menu - View commit details
-
Copy full SHA for b7c0e46 - Browse repository at this point
Copy the full SHA b7c0e46View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffc1c5a - Browse repository at this point
Copy the full SHA ffc1c5aView commit details
Commits on Nov 8, 2019
-
docs: Fix link to BufWriter::flush
One of the links in the docs was being rendered as a literal open-bracket followed by a single quote, instead of being transformed into a link. Fix it to match the link earlier in the same paragraph.
Configuration menu - View commit details
-
Copy full SHA for 413ab57 - Browse repository at this point
Copy the full SHA 413ab57View commit details
Commits on Nov 9, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 1b8b2ee - Browse repository at this point
Copy the full SHA 1b8b2eeView commit details
Commits on Nov 10, 2019
-
download .tar.xz if python3 is used
Guanqun Lu committedNov 10, 2019 Configuration menu - View commit details
-
Copy full SHA for 8d56bcc - Browse repository at this point
Copy the full SHA 8d56bccView commit details
Commits on Nov 11, 2019
-
bootstrap: don't call support_xz in hot-path
Guanqun Lu committedNov 11, 2019 Configuration menu - View commit details
-
Copy full SHA for 0019371 - Browse repository at this point
Copy the full SHA 0019371View commit details -
Configuration menu - View commit details
-
Copy full SHA for f9f5a88 - Browse repository at this point
Copy the full SHA f9f5a88View commit details -
Move injected_panic_runtime to CrateStore
This was essentially a "query" previously (with no key, just always run once when resolving the crate dependencies), and remains so, just now in a way that isn't on Session. This removes the need for the `Once` as well.
Configuration menu - View commit details
-
Copy full SHA for e1cf38a - Browse repository at this point
Copy the full SHA e1cf38aView commit details -
Move allocator_kind to CrateStore
Similarly to the previous commit, there's no need for this to be in Session and have a Once around it.
Configuration menu - View commit details
-
Copy full SHA for 2c6d609 - Browse repository at this point
Copy the full SHA 2c6d609View commit details -
Use a relative bindir for rustdoc to find rustc
In bootstrap, we set `RUSTC_INSTALL_BINDIR` to `config.bindir`, so rustdoc can find rustc relative to the toolchain sysroot. However, if a distro script like Fedora's `%configure` sets an absolute path, then rustdoc's `sysroot.join(bin_path)` ignores that sysroot altogether. That would be OK once the toolchain is actually installed, but it breaks the in-tree doc tests during the build, since `/usr/bin/rustc` is still the old version. So now we try to make `RUSTC_INSTALL_BINDIR` relative to the sysroot prefix in the first place.
Configuration menu - View commit details
-
Copy full SHA for 1aee3e4 - Browse repository at this point
Copy the full SHA 1aee3e4View commit details
Commits on Nov 12, 2019
-
Configuration menu - View commit details
-
Copy full SHA for e8f3a9f - Browse repository at this point
Copy the full SHA e8f3a9fView commit details -
Match constructor first in Constructor methods
This makes it easier to add new non-standard constructors, and this also ensures that we don't forget cases when adding a new constructor.
Configuration menu - View commit details
-
Copy full SHA for eb99c73 - Browse repository at this point
Copy the full SHA eb99c73View commit details -
Introduce Constructor::NonExhaustive
It counts as an extra constructor for types that are not allowed to be matched exhaustively.
Configuration menu - View commit details
-
Copy full SHA for 357d53c - Browse repository at this point
Copy the full SHA 357d53cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e398d89 - Browse repository at this point
Copy the full SHA e398d89View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec45882 - Browse repository at this point
Copy the full SHA ec45882View commit details -
Configuration menu - View commit details
-
Copy full SHA for bae9832 - Browse repository at this point
Copy the full SHA bae9832View commit details -
Configuration menu - View commit details
-
Copy full SHA for 412f000 - Browse repository at this point
Copy the full SHA 412f000View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74d45af - Browse repository at this point
Copy the full SHA 74d45afView commit details -
Configuration menu - View commit details
-
Copy full SHA for bfa5e5f - Browse repository at this point
Copy the full SHA bfa5e5fView commit details -
Move self-profile infrastructure to data structures
The single dependency on queries (QueryName) can be fairly easily abstracted via a trait and this further decouples Session from librustc (the primary goal).
Configuration menu - View commit details
-
Copy full SHA for f696b21 - Browse repository at this point
Copy the full SHA f696b21View commit details -
Remove dead code for encoding/decoding lint IDs
This helps decouple the lint system from needing the implicit TLS TyCtxt as well.
Configuration menu - View commit details
-
Copy full SHA for 8c29b74 - Browse repository at this point
Copy the full SHA 8c29b74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fd5454 - Browse repository at this point
Copy the full SHA 2fd5454View commit details
Commits on Nov 13, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 6a3a055 - Browse repository at this point
Copy the full SHA 6a3a055View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1de094a - Browse repository at this point
Copy the full SHA 1de094aView commit details -
Configuration menu - View commit details
-
Copy full SHA for fd868d4 - Browse repository at this point
Copy the full SHA fd868d4View commit details -
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for aba385a - Browse repository at this point
Copy the full SHA aba385aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 19ebe2f - Browse repository at this point
Copy the full SHA 19ebe2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b5ae01 - Browse repository at this point
Copy the full SHA 5b5ae01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 861698a - Browse repository at this point
Copy the full SHA 861698aView commit details -
Rollup merge of rust-lang#65932 - guanqun:download-xz, r=alexcrichton
download .tar.xz if python3 is used fixes rust-lang#65757
Configuration menu - View commit details
-
Copy full SHA for 4ac230a - Browse repository at this point
Copy the full SHA 4ac230aView commit details -
Rollup merge of rust-lang#66094 - ArturKovacs:fix-count-doc, r=Dylan-DPC
Fix documentation for `Iterator::count()`. The documentation of std::core::Iterator::count() stated that the number returned is the number of times `next` is called on the iterator. However this is not true as the number of times `next` is called is exactly one plus the number returned by `count()`.
Configuration menu - View commit details
-
Copy full SHA for e365d5a - Browse repository at this point
Copy the full SHA e365d5aView commit details -
Rollup merge of rust-lang#66166 - GuillaumeGomez:rename-rustdoc-to-do…
…c, r=QuietMisdreavus rename cfg(rustdoc) into cfg(doc) Needed by rust-lang#61351 r? @QuietMisdreavus
Configuration menu - View commit details
-
Copy full SHA for 6eea500 - Browse repository at this point
Copy the full SHA 6eea500View commit details -
Rollup merge of rust-lang#66186 - GuillaumeGomez:long-err-explanation…
…-E0623, r=Dylan-DPC Add long error explanation for E0623 Part of rust-lang#61137. r? @Dylan-DPC
Configuration menu - View commit details
-
Copy full SHA for be3fcf4 - Browse repository at this point
Copy the full SHA be3fcf4View commit details -
Rollup merge of rust-lang#66227 - bryanburgers:bufwriter-docs-fix-flu…
…sh-link, r=Dylan-DPC docs: Fix link to BufWriter::flush One of the links in the docs was being rendered as a literal open-bracket followed by a single quote, instead of being transformed into a link. Fix it to match the link earlier in the same paragraph.
Configuration menu - View commit details
-
Copy full SHA for fac0982 - Browse repository at this point
Copy the full SHA fac0982View commit details -
Rollup merge of rust-lang#66248 - RalfJung:unsafe_cell_raw_get, r=Sim…
…onSapin add raw ptr variant of UnsafeCell::get This has come up recently in rust-lang#66051 (Cc @Centril @pitdicker) as well as in discussion with @nikomatsakis and in unrelated discussion with @withoutboats.
Configuration menu - View commit details
-
Copy full SHA for 689cc04 - Browse repository at this point
Copy the full SHA 689cc04View commit details -
Rollup merge of rust-lang#66292 - lzutao:result-map_or, r=SimonSapin
add Result::map_or This PR adds this API to make it consistent with `Option::map_or`. ```rust impl<T, E> Result<T, E> { pub fn map_or<U, F: FnOnce(T) -> U>(self, default: U, f: F) -> U { match self { Ok(t) => f(t), Err(_) => default, } } } ``` This API is very small. We already has a similar API for `Option::map_or`.
Configuration menu - View commit details
-
Copy full SHA for 961d51d - Browse repository at this point
Copy the full SHA 961d51dView commit details -
Rollup merge of rust-lang#66297 - vakaras:edit-queries, r=oli-obk
Add a callback that allows compiler consumers to override queries. This pull request adds an additional callback that allows compiler consumers such as Prusti and MIRAI to override queries. My hope is that in this way it will be possible to get access to the internal compiler information (e.g. borrow checker) without major changes to the compiler. This pull request is work in progress because I am still testing if I can get the information which I need. cc @nikomatsakis r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for c75a48a - Browse repository at this point
Copy the full SHA c75a48aView commit details -
Rollup merge of rust-lang#66317 - cuviper:bindir_relative, r=Mark-Sim…
…ulacrum Use a relative bindir for rustdoc to find rustc In bootstrap, we set `RUSTC_INSTALL_BINDIR` to `config.bindir`, so rustdoc can find rustc relative to the toolchain sysroot. However, if a distro script like Fedora's `%configure` sets an absolute path, then rustdoc's `sysroot.join(bin_path)` ignores that sysroot altogether. That would be OK once the toolchain is actually installed, but it breaks the in-tree doc tests during the build, since `/usr/bin/rustc` is still the old version. So now we try to make `RUSTC_INSTALL_BINDIR` relative to the sysroot prefix in the first place. r? @Mark-Simulacrum
Configuration menu - View commit details
-
Copy full SHA for 1cbd34f - Browse repository at this point
Copy the full SHA 1cbd34fView commit details -
Rollup merge of rust-lang#66330 - Nadrieril:nonexhaustive-constructor…
…, r=varkor Improve non-exhaustiveness handling in usefulness checking The comments around code paths for the `non_exhaustive` feature mention stuff like "we act as if the type had an extra unmatcheable constructor". So I thought I'd make this explicit by defining a special constructor that does exactly this. This makes those code paths a bit more legible and less prone to error.
Configuration menu - View commit details
-
Copy full SHA for 60ba5c7 - Browse repository at this point
Copy the full SHA 60ba5c7View commit details -
Rollup merge of rust-lang#66331 - JohnTitor:add-tests, r=Centril
Add some tests for fixed ICEs Closes rust-lang#30904 (fixed between nightly-2019-07-14 and nightly-2019-07-31) Closes rust-lang#40231 (example 1 is fixed in 1.32.0, example 2 is fixed in 1.38.0) Closes rust-lang#52432 (fixed in rustc 1.40.0-beta.1 (76b4053 2019-11-05)) Closes rust-lang#63279 (fixed in rustc 1.40.0-nightly (246be7e 2019-10-25)) r? @Centril
Configuration menu - View commit details
-
Copy full SHA for 5683fe5 - Browse repository at this point
Copy the full SHA 5683fe5View commit details -
Rollup merge of rust-lang#66334 - Mark-Simulacrum:sess-cstore, r=petr…
…ochenkov Move Session fields to CrateStore `allocator_kind` and `injected_panic_runtime` are both query-like, this moves them out of Session and into CrateStore, avoiding the `Once` they previously had by clearing separating initialization and de-initialization.
Configuration menu - View commit details
-
Copy full SHA for f735cd2 - Browse repository at this point
Copy the full SHA f735cd2View commit details -
Rollup merge of rust-lang#66335 - Mark-Simulacrum:self-profile-to-dat…
…a, r=michaelwoerister Move self-profile infrastructure to data structures The single dependency on queries (QueryName) can be fairly easily abstracted via a trait and this further decouples Session from librustc (the primary goal). This is intended as a precursor to moving Session out of librustc, but since that involves lots of smaller steps that move around code I'm splitting it up into separate PRs.
Configuration menu - View commit details
-
Copy full SHA for fab583b - Browse repository at this point
Copy the full SHA fab583bView commit details -
Rollup merge of rust-lang#66337 - Mark-Simulacrum:no-decode-lint-id, …
…r=Dylan-DPC Remove dead code for encoding/decoding lint IDs This helps decouple the lint system from needing the implicit TLS TyCtxt as well.
Configuration menu - View commit details
-
Copy full SHA for d52dafd - Browse repository at this point
Copy the full SHA d52dafdView commit details