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 11 pull requests #91382

Closed
wants to merge 29 commits into from

Commits on Nov 22, 2021

  1. Only shown relevant type params in E0283 label

    When we point at a binding to suggest giving it a type, erase all the
    type for ADTs that have been resolved, leaving only the ones that could
    not be inferred. For small shallow types this is not a problem, but for
    big nested types with lots of params, this can otherwise cause a lot of
    unnecessary visual output.
    estebank committed Nov 22, 2021
    Configuration menu
    Copy the full SHA
    577e985 View commit details
    Browse the repository at this point in the history
  2. Refer to uninferred const params by their name, instead of { _: _ }

    When the value of a const param isn't inferred, replace it with the
    param name from the definition.
    estebank committed Nov 22, 2021
    Configuration menu
    Copy the full SHA
    d0d51ea View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8a08bef View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e462819 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2021

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

Commits on Nov 26, 2021

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

Commits on Nov 28, 2021

  1. tests: Ignore test/debuginfo/rc_arc.rs on windows-gnu

    The tests checks some pretty-printer output, but pretty-printers are not embedded on windows-gnu
    petrochenkov committed Nov 28, 2021
    Configuration menu
    Copy the full SHA
    b6f9416 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2021

  1. Configuration menu
    Copy the full SHA
    e500eb6 View commit details
    Browse the repository at this point in the history
  2. Fix small typo

    kijimaD committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    3c42a11 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6c3c3e0 View commit details
    Browse the repository at this point in the history
  4. ⬆️ rust-analyzer

    lnicola committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    dec0d83 View commit details
    Browse the repository at this point in the history
  5. review comments: clean up

    estebank committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    c027105 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f67e73a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    29b4b6c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2c9d9b4 View commit details
    Browse the repository at this point in the history
  9. Bless nll

    jackh726 committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    692e96c View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    188d670 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2021

  1. Rollup merge of rust-lang#87160 - estebank:colon-recovery, r=nagisa

    When recovering from a `:` in a pattern, use adequate AST pattern
    
    If the suggestion to use `::` instead of `:` in the pattern isn't correct, a second resolution error will be emitted.
    matthiaskrgr committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    aec1574 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#90709 - estebank:erase-known-type-params, r…

    …=nagisa
    
    Only shown relevant type params in E0283 label
    
    When we point at a binding to suggest giving it a type, erase all the
    type for ADTs that have been resolved, leaving only the ones that could
    not be inferred. For small shallow types this is not a problem, but for
    big nested types with lots of params, this can otherwise cause a lot of
    unnecessary visual output.
    matthiaskrgr committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    ec9cd2a View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#91045 - mjptree:issue-90702-fix, r=petroche…

    …nkov
    
    Issue 90702 fix: Stop treating some crate loading failures as fatal errors
    
    Surface mulitple `extern crate` resolution errors at a time.
    
    This is achieved by creating a dummy crate, instead of aborting directly after the resolution error. The `ExternCrateError` has been added to allow propagating the resolution error from `rustc_metadata` crate to the `rustc_resolve` with a minimal public surface. The `import_extern_crate` function is a block that was factored out from `build_reduced_graph_for_item` for better organization. The only added functionality made to it where the added error handling in the `process_extern_crate` call. The remaining bits in this function are the same as before.
    
    Resolves rust-lang#90702
    
    r? `@petrochenkov`
    matthiaskrgr committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    5cf4b13 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#91243 - jackh726:issue-91068, r=nikomatsakis

    Don't treat unnormalized function arguments as well-formed
    
    Partial revert of rust-lang#88312
    
    r? `@pnkfelix`
    cc `@nikomatsakis`
    matthiaskrgr committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    0629ad2 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#91250 - rukai:remove_trailing_whitespace, r…

    …=wesleywiser
    
    Refactor EmitterWriter::emit_suggestion_default
    
    Makes progress towards rust-lang#89979
    
    Split into 2 commits:
    * the first commit is purely a refactor and I verified that `./x.py test src/test/ui --stage 1` and  `./x.py test src/test/rustdoc-ui --stage 1` continue to pass on this commit.
    * ~~the second commit removes the empty trailing line from diff style suggestions.~~ - I discovered an issue with this so its just the refactor now.
    
    r? diagnostics
    matthiaskrgr committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    e6c17fd View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#91317 - petrochenkov:debugnu, r=Mark-Simula…

    …crum
    
    tests: Ignore `test/debuginfo/rc_arc.rs` on windows-gnu
    
    The tests checks some pretty-printer output, but pretty-printers are not embedded on windows-gnu.
    
    Regressed in rust-lang#85448.
    matthiaskrgr committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    da7612c View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#91323 - RalfJung:assert-type, r=oli-obk

    CTFE: support assert_zero_valid and assert_uninit_valid
    
    This ensures the implementation of all three type-based assert_ intrinsics remains consistent in Miri.
    
    `assert_inhabited` recently got stabilized in rust-lang#90896 (meaning stable `const fn` can call it), so do the same with these other intrinsics.
    
    Cc ``@rust-lang/wg-const-eval``
    matthiaskrgr committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    ad898ec View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#91340 - cr1901:no-atomic, r=Mark-Simulacrum

    Bump compiler_builtins to 0.1.55 to bring in fixes for targets lackin…
    
    …g atomic support.
    
    This fixes a "Cannot select" LLVM error when compiling `compiler_builtins` for targets lacking atomics, like MSP430. Se rust-lang/compiler-builtins#441 for more info. This PR is a more general version of rust-lang#91248.
    matthiaskrgr committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    86bd6a0 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#91358 - kd-collective:fix_typo, r=cjgillot

    Fix small typo
    
    Fix a typo in code commenting!
    `accross` -> `across`
    matthiaskrgr committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    06afe44 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#91360 - lnicola:rust-analyzer-2021-11-29, r…

    …=lnicola
    
    ⬆️ rust-analyzer
    
    r? ``@ghost``
    matthiaskrgr committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    5d4d3f2 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#91368 - ecstatic-morse:mir-pass-reexport, r…

    …=cjgillot
    
    Don't re-export `MirPass`
    
    `rust-analyzer` wants to use the `rustc_const_eval` one by default, which is weird.
    
    r? `@cjgillot`
    matthiaskrgr committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    1a46a42 View commit details
    Browse the repository at this point in the history