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 13 pull requests #90926

Closed
wants to merge 32 commits into from

Commits on Nov 8, 2021

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

Commits on Nov 11, 2021

  1. Configuration menu
    Copy the full SHA
    181716a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    26ca71f View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2021

  1. Android is not GNU

    cuviper committed Nov 12, 2021
    Configuration menu
    Copy the full SHA
    a24e2ed View commit details
    Browse the repository at this point in the history
  2. add tests

    b-naber committed Nov 12, 2021
    Configuration menu
    Copy the full SHA
    7a4aa65 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2021

  1. Configuration menu
    Copy the full SHA
    da7dd4f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    65e02be View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6a34355 View commit details
    Browse the repository at this point in the history
  4. Inline printable function

    5225225 committed Nov 13, 2021
    Configuration menu
    Copy the full SHA
    e197392 View commit details
    Browse the repository at this point in the history
  5. Fix handling of substitutions and binders when deciding whether to su…

    …ggest references
    
    When suggesting references, substitutions were being forgotten and some types were misused. This led to at
    least one ICE and other incorrectly emitted diagnostics. This has been fixed; in some cases this leads to
    diagnostics changing, and tests have been adjusted.
    JakobDegen committed Nov 13, 2021
    Configuration menu
    Copy the full SHA
    d58d52a View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2021

  1. Configuration menu
    Copy the full SHA
    94ca0b3 View commit details
    Browse the repository at this point in the history
  2. Fix span for non-satisfied trivial trait bounds

    The spans for "trait bound not satisfied" errors in trivial trait bounds referenced the entire item (fn, impl, struct) before.
    Now they only reference the obligation itself (`String: Copy`)
    
    Address rust-lang#90869
    Nilstrieb committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    24acf86 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    50ec47a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    60595f7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    eebf676 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2021

  1. expand comment

    RalfJung committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    9ec8862 View commit details
    Browse the repository at this point in the history
  2. Support having -Z and -C options with the same name

    Tweak the `options!` macro to allow for -Z and -C options with the same
    name without generating conflicting internal parsing functions.
    
    Split out of the commit stabilizing -Z strip as -C strip.
    joshtriplett committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    c4884bb View commit details
    Browse the repository at this point in the history
  3. Stabilize -Z strip as -C strip

    Leave -Z strip available temporarily as an alias, to avoid breaking
    cargo until cargo transitions to using -C strip. (If the user passes
    both, the -C version wins.)
    joshtriplett committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    e35b7bb View commit details
    Browse the repository at this point in the history
  4. ⬆️ rust-analyzer

    lnicola committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    4926dff View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#89610 - guswynn:must_use_future, r=wesleywiser

    warn on must_use use on async fn's
    
    As referenced in rust-lang#78149
    
    This only works on `async` fn's for now, I can also look into if I can get `Box<dyn Future>` and `impl Future` working at this level (hir)
    matthiaskrgr committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    85db2ff View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#90058 - joshtriplett:stabilize-strip, r=wes…

    …leywiser
    
    Stabilize -Z strip as -C strip
    
    Leave -Z strip available temporarily as an alias, to avoid breaking
    cargo until cargo transitions to using -C strip.
    matthiaskrgr committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    4a0fc7b View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#90790 - tamaroning:fix-lib-std-test, r=Mark…

    …-Simulacrum
    
    Fix standard library test with read_link
    
    closes rust-lang#90669
    resolve this issue by comparing between Paths instead of strs
    matthiaskrgr committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    f5ce358 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#90801 - b-naber:missing_normalization_equat…

    …e_inputs_output, r=jackh726
    
    Normalize both arguments of `equate_normalized_input_or_output`
    
    Fixes rust-lang#90638
    Fixes rust-lang#90612
    
    Temporary fix for a more complex underlying problem stemming from an inability to normalize closure substs during typecheck.
    
    r? ``@jackh726``
    matthiaskrgr committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    88b24d1 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#90819 - JakobDegen:issue-90804, r=petrochenkov

    Fixes incorrect handling of TraitRefs when emitting suggestions.
    
    Closes rust-lang#90804 , although there were more issues here that were hidden by the thing that caused this ICE.
    
    Underlying problem was that substitutions were being thrown out, which not only leads to an ICE but also incorrect diagnostics. On top of that, in some cases the self types from the root obligations were being mixed in with those from derived obligations.
    
    This makes a couple diagnostics arguable worse ("`B<C>` does not implement `Copy`" instead of "`C` does not implement `Copy`") but the worse diagnostics are at least still correct and that downside is in my opinion clearly outweighed by the benefits of fixing the ICE and unambiguously wrong diagnostics.
    matthiaskrgr committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    e2d8a02 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#90834 - cuviper:android-gnu, r=petrochenkov

    Android is not GNU
    
    For a long time, the Android targets had `target_env=""`, but this changed to `"gnu"` in Rust 1.49.0. I tracked this down to rust-lang#77729 which started setting `"gnu"` in the `linux_base` target options, and this was inherited by `android_base`. Then rust-lang#78929 split the env into `linux_gnu_base`, but `android_base` was also changed to follow that. Android was not specifically mentioned in either pull request, so I believe this was an accident. Moving it back to `linux_base` will use an empty `env` again.
    
    r? ```@Mark-Simulacrum```
    cc ```@petrochenkov```
    matthiaskrgr committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    71d8a11 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#90861 - 5225225:nonprinting-char, r=davidtwco

    Print escaped string if char literal has multiple characters, but only one printable character
    
    Fixes rust-lang#90857
    
    I'm not sure about the error message here, it could get rather long and *maybe* using the names of characters would be better? That wouldn't help the length any, though.
    matthiaskrgr committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    b616f07 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#90884 - Nilstrieb:fix-span-trivial-trait-bo…

    …und, r=estebank
    
    Fix span for non-satisfied trivial trait bounds
    
    The spans for "trait bound not satisfied" errors in trivial trait bounds referenced the entire item (fn, impl, struct) before.
    Now they only reference the obligation itself (`String: Copy`)
    
    Address rust-lang#90869
    matthiaskrgr committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    0b05174 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#90892 - RalfJung:miri-partial-ptr-copy, r=o…

    …li-obk
    
    fix ICE on Miri/CTFE copy of half a pointer
    
    Fixes rust-lang/miri#1910
    r? ````@oli-obk````
    matthiaskrgr committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    a4d4a7f View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#90900 - andjo403:removeLlvm12Check, r=nikic

    Remove workaround for the forward progress handling in LLVM
    
    this workaround was only needed for LLVM < 12 and the minimum LLVM version was updated to 12 in rust-lang#90175
    matthiaskrgr committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    098cb2a View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#90909 - RalfJung:miri-no-portable-simd, r=w…

    …orkingjubilee
    
    disable portable SIMD tests in Miri
    
    Until rust-lang/miri#1912 is resolved, we'll have to skip these tests in Miri.
    matthiaskrgr committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    21b910b View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#90910 - RalfJung:const-discriminant-empty-e…

    …num, r=petrochenkov
    
    fix getting the discriminant of a zero-variant enum
    
    Fixes rust-lang#89765
    matthiaskrgr committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    91ae872 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#90920 - lnicola:rust-analyzer-2021-11-15, r…

    …=lnicola
    
    ⬆️ rust-analyzer
    
    r? ``@ghost``
    matthiaskrgr committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    20b93eb View commit details
    Browse the repository at this point in the history