Skip to content
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

Merged
merged 47 commits into from
Nov 13, 2019
Merged

Rollup of 14 pull requests #66366

merged 47 commits into from
Nov 13, 2019

Commits on Nov 4, 2019

  1. Configuration menu
    Copy the full SHA
    7550b61 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6ce3e1d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    23be25c View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2019

  1. Configuration menu
    Copy the full SHA
    0282c27 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2019

  1. Configuration menu
    Copy the full SHA
    b7c0e46 View commit details
    Browse the repository at this point in the history
  2. Update ui tests

    GuillaumeGomez committed Nov 7, 2019
    Configuration menu
    Copy the full SHA
    ffc1c5a View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2019

  1. 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.
    bryanburgers committed Nov 8, 2019
    Configuration menu
    Copy the full SHA
    413ab57 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2019

  1. Configuration menu
    Copy the full SHA
    1b8b2ee View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2019

  1. download .tar.xz if python3 is used

    Guanqun Lu committed Nov 10, 2019
    Configuration menu
    Copy the full SHA
    8d56bcc View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2019

  1. bootstrap: don't call support_xz in hot-path

    Guanqun Lu committed Nov 11, 2019
    Configuration menu
    Copy the full SHA
    0019371 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f9f5a88 View commit details
    Browse the repository at this point in the history
  3. 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.
    Mark-Simulacrum committed Nov 11, 2019
    Configuration menu
    Copy the full SHA
    e1cf38a View commit details
    Browse the repository at this point in the history
  4. 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.
    Mark-Simulacrum committed Nov 11, 2019
    Configuration menu
    Copy the full SHA
    2c6d609 View commit details
    Browse the repository at this point in the history
  5. 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.
    cuviper committed Nov 11, 2019
    Configuration menu
    Copy the full SHA
    1aee3e4 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2019

  1. add Result::map_or

    tesuji committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    e8f3a9f View commit details
    Browse the repository at this point in the history
  2. 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.
    Nadrieril committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    eb99c73 View commit details
    Browse the repository at this point in the history
  3. Introduce Constructor::NonExhaustive

    It counts as an extra constructor for types that are not allowed to be
    matched exhaustively.
    Nadrieril committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    357d53c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e398d89 View commit details
    Browse the repository at this point in the history
  5. Add test for issue-30904

    JohnTitor committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    ec45882 View commit details
    Browse the repository at this point in the history
  6. Add test for issue-40231

    JohnTitor committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    bae9832 View commit details
    Browse the repository at this point in the history
  7. Add test for issue-52432

    JohnTitor committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    412f000 View commit details
    Browse the repository at this point in the history
  8. Add test for issue-63279

    JohnTitor committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    74d45af View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    bfa5e5f View commit details
    Browse the repository at this point in the history
  10. 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).
    Mark-Simulacrum committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    f696b21 View commit details
    Browse the repository at this point in the history
  11. Remove dead code for encoding/decoding lint IDs

    This helps decouple the lint system from needing the implicit TLS TyCtxt
    as well.
    Mark-Simulacrum committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    8c29b74 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    2fd5454 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2019

  1. Update error_codes.rs

    Dylan-DPC authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    6a3a055 View commit details
    Browse the repository at this point in the history
  2. Update error_codes.rs

    Dylan-DPC authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    1de094a View commit details
    Browse the repository at this point in the history
  3. tidy up!

    Dylan-DPC authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    fd868d4 View commit details
    Browse the repository at this point in the history
  4. Trailing full stop

    Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
    RalfJung and Centril authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    aba385a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    19ebe2f View commit details
    Browse the repository at this point in the history
  6. expand docs

    RalfJung committed Nov 13, 2019
    Configuration menu
    Copy the full SHA
    5b5ae01 View commit details
    Browse the repository at this point in the history
  7. make things ugly

    RalfJung committed Nov 13, 2019
    Configuration menu
    Copy the full SHA
    861698a View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#65932 - guanqun:download-xz, r=alexcrichton

    download .tar.xz if python3 is used
    
    fixes rust-lang#65757
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    4ac230a View commit details
    Browse the repository at this point in the history
  9. 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()`.
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    e365d5a View commit details
    Browse the repository at this point in the history
  10. 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
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    6eea500 View commit details
    Browse the repository at this point in the history
  11. 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
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    be3fcf4 View commit details
    Browse the repository at this point in the history
  12. 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.
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    fac0982 View commit details
    Browse the repository at this point in the history
  13. 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.
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    689cc04 View commit details
    Browse the repository at this point in the history
  14. 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`.
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    961d51d View commit details
    Browse the repository at this point in the history
  15. 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
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    c75a48a View commit details
    Browse the repository at this point in the history
  16. 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
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    1cbd34f View commit details
    Browse the repository at this point in the history
  17. 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.
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    60ba5c7 View commit details
    Browse the repository at this point in the history
  18. 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
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    5683fe5 View commit details
    Browse the repository at this point in the history
  19. 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.
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    f735cd2 View commit details
    Browse the repository at this point in the history
  20. 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.
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    fab583b View commit details
    Browse the repository at this point in the history
  21. 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.
    JohnTitor authored Nov 13, 2019
    Configuration menu
    Copy the full SHA
    d52dafd View commit details
    Browse the repository at this point in the history