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 8 pull requests #109734

Merged
merged 22 commits into from
Mar 30, 2023
Merged

Rollup of 8 pull requests #109734

merged 22 commits into from
Mar 30, 2023

Commits on Feb 26, 2023

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

Commits on Mar 24, 2023

  1. Configuration menu
    Copy the full SHA
    8e56c2c View commit details
    Browse the repository at this point in the history
  2. Use independent suggestions

    mu001999 committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    6034b2f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7f89c7c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    910a5ad View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2023

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

Commits on Mar 29, 2023

  1. add run-rustfix

    mu001999 committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    dde26b3 View commit details
    Browse the repository at this point in the history
  2. Move mir::Fieldabi::FieldIdx

    The first PR for rust-lang/compiler-team#606
    
    This is just the move-and-rename, because it's plenty big-and-bitrotty already.  Future PRs will start using `FieldIdx` more broadly, and concomitantly removing `FieldIdx::new`s.
    scottmcm committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    5bbaead View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f6bde03 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    71ff7ef View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cdc4fa4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d62238d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a61616a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    979c265 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#107387 - joboet:hermit_random, r=ChrisDenton

    Use random `HashMap` keys on Hermit
    
    Initializing the keys with random data provided by the libOS avoids HashDOS attacks and similar issues.
    
    CC `@stlankes`
    matthiaskrgr committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    57f1d11 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#109511 - compiler-errors:eval-ctxt-infcx-pr…

    …ivate, r=lcnr
    
    Make `EvalCtxt`'s `infcx` private
    
    To better protect against people doing bad things with the inner `InferCtxt`
    
    r? `@lcnr`
    matthiaskrgr committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    9f28c98 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#109554 - MU001999:master, r=WaffleLapkin

    Suggest ..= when someone tries to create an overflowing range
    
    Fixes rust-lang#109529
    matthiaskrgr committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    83573a3 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#109675 - compiler-errors:object-heck, r=lcnr

    Do not consider elaborated projection predicates for objects in new solver
    
    Object types have projection bounds which are elaborated during astconv. There's no need to do it again for projection goals, since that'll give us duplicate projection candidatesd that are distinct up to regions due to the fact that we canonicalize every region to a separate variable. See quick example below the break for a better explanation.
    
    Discussed this with lcnr, and adding a stop-gap until we get something like intersection region constraints (or modify canonicalization to canonicalize identical regions to the same canonical regions) -- after which, this will hopefully not matter and may be removed.
    
    r? `@lcnr`
    
    ---
    
    See `tests/ui/traits/new-solver/more-object-bound.rs`:
    
    Consider a goal: `<dyn Iter<'a, ()> as Iterator>::Item = &'a ()`.
    
    After canonicalization: `<dyn Iter<'!0r, (), Item = '!1r ()> as Iterator>::Item == &!'2r ()`
    * First object candidate comes from the item bound in the dyn's bounds itself, giving us `<dyn Iter<'!0r, (), Item = '?!r ()> as Iterator>::Item == &!'1r ()`. This gives us one region constraint: `!'1r == !'2r`.
    * Second object candidate comes from elaborating the principal trait ref, gives us `<dyn Iter<'!0r, (), Item = '!1r ()> as Iterator>::Item == &!'0r ()`. This gives us one region constraint: `!'0r == !'2r`.
    * Oops! Ambiguity!
    matthiaskrgr committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    80e988d View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#109693 - workingjubilee:maybe-unconstify-al…

    …loc, r=fee1-dead
    
    Remove ~const from alloc
    
    There is currently an effort underway to stop using `~const Trait`, temporarily, so as to refactor the logic underlying const traits with relative ease. This means it has to go from the standard library, as well.
    
    I have taken the initial step of just removing these impls from alloc, as removing them from core is a much more tangled task. In addition, all of these implementations are one more-or-less logically-connected group, so reverting their deconstification as a group seems like it will also be sensible.
    
    r? `@fee1-dead`
    matthiaskrgr committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    c62bb46 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#109700 - clubby789:tidy-fluent-escape, r=co…

    …mpiler-errors
    
    Lint against escape sequences in Fluent files
    
    Fixes rust-lang#109686 by checking for `\n`, `\"` and `\'` in Fluent files. It might be useful to have a way to opt out of this check, but all messages with violations currently do seem to be incorrect.
    matthiaskrgr committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    5937ec1 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#109716 - scottmcm:field-to-fieldidx, r=oli-obk

    Move `mir::Field` → `abi::FieldIdx`
    
    The first PR for rust-lang/compiler-team#606
    
    This is just the move-and-rename, because it's plenty big already.  Future PRs will start using `FieldIdx` more broadly, and concomitantly removing `FieldIdx::new`s.
    matthiaskrgr committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    85c3845 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#109726 - GuillaumeGomez:doc-hidden-crate, r…

    …=notriddle
    
    rustdoc: Don't strip crate module
    
    Until we decide something for rust-lang#109695, rustdoc won't crash anymore because the crate folder doesn't exist.
    
    r? `@notriddle`
    matthiaskrgr committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    02cb4da View commit details
    Browse the repository at this point in the history