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 7 pull requests #89629

Merged
merged 24 commits into from
Oct 7, 2021
Merged

Commits on Sep 27, 2021

  1. Issue 89193

    gcohara committed Sep 27, 2021
    Configuration menu
    Copy the full SHA
    d122a08 View commit details
    Browse the repository at this point in the history
  2. Update issue-89193.rs

    gcohara authored Sep 27, 2021
    Configuration menu
    Copy the full SHA
    88113c5 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2021

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

Commits on Oct 3, 2021

  1. Configuration menu
    Copy the full SHA
    250d126 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2a57a46 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2021

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

Commits on Oct 5, 2021

  1. RustWrapper: adapt for LLVM API change of fatal_error_handler_t

    No functional changes intended.
    
    The LLVM commit
    llvm/llvm-project@e463b69
    changed an argument of fatal_error_handler_t from std::string to char*.
    This adapts RustWrapper accordingly.
    krasimirgg committed Oct 5, 2021
    Configuration menu
    Copy the full SHA
    67a82e2 View commit details
    Browse the repository at this point in the history
  2. Make cfg implicitly imply doc(cfg)

    This is only active when the `doc_cfg` feature is active.
    
    The implicit cfg can be overridden via #[doc(cfg(...))], so e.g. to
    hide a #[cfg] you can use something like:
    
    ```rust
     #[cfg(unix)]
     #[doc(cfg(all()))]
    pub struct Unix;
    ```
    
    (since `all()` is always true, it is never shown in the docs)
    Nemo157 authored and GuillaumeGomez committed Oct 5, 2021
    Configuration menu
    Copy the full SHA
    10cdbd8 View commit details
    Browse the repository at this point in the history
  3. Allow adding a set of cfg's to hide from being implicitly doc(cfg)'d

    By adding #![doc(cfg_hide(foobar))] to the crate attributes the cfg
     #[cfg(foobar)] (and _only_ that _exact_ cfg) will not be implicitly
    treated as a doc(cfg) to render a message in the documentation.
    Nemo157 authored and GuillaumeGomez committed Oct 5, 2021
    Configuration menu
    Copy the full SHA
    18fdd81 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0031ce3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e36a370 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    56e5f61 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2021

  1. Configuration menu
    Copy the full SHA
    a15879d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b4c62d5 View commit details
    Browse the repository at this point in the history
  3. Clean up code a bit:

     * Remove "bool_to_options" feature
     * Update version for compiler feature
     * rustfmt
    GuillaumeGomez committed Oct 6, 2021
    Configuration menu
    Copy the full SHA
    8fac41a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    09c7688 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2021

  1. Configuration menu
    Copy the full SHA
    549a68b View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#89298 - gcohara:issue89193, r=workingjubilee

    Issue 89193 - Fix ICE when using `usize` and `isize` with SIMD gathers
    
    closes rust-lang#89193
    r? `@workingjubilee`
    GuillaumeGomez authored Oct 7, 2021
    Configuration menu
    Copy the full SHA
    1584b6a View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#89461 - crlf0710:dyn_upcasting_lint, r=niko…

    …matsakis
    
    Add `deref_into_dyn_supertrait` lint.
    
    Initial implementation of rust-lang#89460. Resolves rust-lang#89190.
    Maybe also worth a beta backport if necessary.
    
    r? `@nikomatsakis`
    GuillaumeGomez authored Oct 7, 2021
    Configuration menu
    Copy the full SHA
    ab276b8 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#89477 - Nicholas-Baron:compute_diff_rs, r=M…

    …ark-Simulacrum
    
    Move items related to computing diffs to a separate file
    
    Work towards rust-lang#89475.
    GuillaumeGomez authored Oct 7, 2021
    Configuration menu
    Copy the full SHA
    48548c9 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#89559 - krasimirgg:llvm-14-fatal_error_hand…

    …ler_t, r=nagisa
    
    RustWrapper: adapt for LLVM API change
    
    No functional changes intended.
    
    The LLVM commit
    llvm/llvm-project@e463b69
    changed an argument of fatal_error_handler_t from std::string to char*.
    This adapts RustWrapper accordingly.
    GuillaumeGomez authored Oct 7, 2021
    Configuration menu
    Copy the full SHA
    110d289 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#89585 - nbdd0121:issue-89574, r=estebank

    Emit item no type error even if type inference fails
    
    Fix rust-lang#89574
    
    The stashed error should be emitted regardless whether ty references error or not.
    GuillaumeGomez authored Oct 7, 2021
    Configuration menu
    Copy the full SHA
    de0b4f9 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#89596 - GuillaumeGomez:implicit-doc-cfg, r=…

    …jyn514
    
    Make cfg imply doc(cfg)
    
    This is a reopening of rust-lang#79341, rebased and modified a bit (we made a lot of refactoring in rustdoc's types so they needed to be reflected in this PR as well):
    
     * `hidden_cfg` is now in the `Cache` instead of `DocContext` because `cfg` information isn't stored anymore on `clean::Attributes` type but instead computed on-demand, so we need this information in later parts of rustdoc.
     * I removed the `bool_to_options` feature (which makes the code a bit simpler to read for `SingleExt` trait implementation.
     * I updated the version for the feature.
    
    There is only one thing I couldn't figure out: [this comment](rust-lang#79341 (comment))
    
    > I think I'll likely scrap the whole `SingleExt` extension trait as the diagnostics for 0 and >1 items should be different.
    
    How/why should they differ?
    
    EDIT: this part has been solved, the current code was fine, just needed a little simplification.
    
    cc `@Nemo157`
    r? `@jyn514`
    
    Original PR description:
    
    This is only active when the `doc_cfg` feature is active.
    
    The implicit cfg can be overridden via `#[doc(cfg(...))]`, so e.g. to hide a `#[cfg]` you can use something like:
    
    ```rust
    #[cfg(unix)]
    #[doc(cfg(all()))]
    pub struct Unix;
    ```
    
    By adding `#![doc(cfg_hide(foobar))]` to the crate attributes the cfg `#[cfg(foobar)]` (and _only_ that _exact_ cfg) will not be implicitly treated as a `doc(cfg)` to render a message in the documentation.
    GuillaumeGomez authored Oct 7, 2021
    Configuration menu
    Copy the full SHA
    e32328b View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#89615 - willcrichton:fix-get-body-with-borr…

    …owck-facts, r=oli-obk
    
    Add InferCtxt::with_opaque_type_inference to get_body_with_borrowck_facts
    
    `mir_borrowck` uses `with_opaque_type_inference` before calling `do_mir_borrowck`: https://github.com/rust-lang/rust/blob/0eabf25b90396dead0b2a1aaa275af18a1ae6008/compiler/rustc_borrowck/src/lib.rs#L132
    
    However `get_body_with_borrowck_facts` does not. Therefore I get an ICE eg when calling this function on the bodies of an async function as described here: https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/.E2.9C.94.20ICE.20when.20using.20get_body_with_borrowck_facts.20with.20async
    
    This change fixes that bug.
    
    r? `@nikomatsakis`
    GuillaumeGomez authored Oct 7, 2021
    Configuration menu
    Copy the full SHA
    0fbb011 View commit details
    Browse the repository at this point in the history