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 5 pull requests #126726

Merged
merged 15 commits into from
Jun 20, 2024
Merged

Rollup of 5 pull requests #126726

merged 15 commits into from
Jun 20, 2024

Commits on Jun 18, 2024

  1. Configuration menu
    Copy the full SHA
    a183989 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c20d909 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9b0f9ef View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2024

  1. Configuration menu
    Copy the full SHA
    3594a19 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1cb75dc View commit details
    Browse the repository at this point in the history
  3. Const generic parameters aren't bounds, even if we end up erroring be…

    …cause of the bound that binds the parameter's type
    oli-obk committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    e4c9a8c View commit details
    Browse the repository at this point in the history
  4. reword the hint::blackbox non-guarantees

    People were tripped up by the "precludes", interpreting it that this function
    must not ever be used in cryptographic contexts rather than the std lib merely
    making zero promises about it being fit-for-purpose.
    
    What remains unchanged is that if someone does try to use it *despite the warnings*
    then it is on them to pin their compiler versions and verify the assembly of every
    single binary build they do.
    the8472 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    95e214d View commit details
    Browse the repository at this point in the history
  5. Inline can_begin_literal_maybe_minus call into two places.

    It's clearer this way, because the `Interpolated` cases in
    `can_begin_const_arg` and `is_pat_range_end_start` are more permissive
    than the `Interpolated` cases in `can_begin_literal_maybe_minus`.
    nnethercote committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    7d9a92b View commit details
    Browse the repository at this point in the history
  6. Introduce can_begin_string_literal.

    We currently use `can_begin_literal_maybe_minus` in a couple of places
    where only string literals are allowed. This commit introduces a
    more specific function, which makes things clearer. It doesn't change
    behaviour because the two functions affected (`is_unsafe_foreign_mod`
    and `check_keyword_case`) are always followed by a call to `parse_abi`,
    which checks again for a string literal.
    nnethercote committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    c6f7827 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. Configuration menu
    Copy the full SHA
    e8a9af9 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#126620 - oli-obk:taint_errors, r=fee1-dead

    Actually taint InferCtxt when a fulfillment error is emitted
    
    And avoid checking the global error counter
    
    fixes rust-lang#122044
    fixes rust-lang#123255
    fixes rust-lang#123276
    fixes rust-lang#125799
    matthiaskrgr authored Jun 20, 2024
    Configuration menu
    Copy the full SHA
    e7be356 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#126649 - compiler-errors:nightly, r=lcnr

    Fix `feature = "nightly"` in the new trait solver
    
    r? lcnr
    matthiaskrgr authored Jun 20, 2024
    Configuration menu
    Copy the full SHA
    8ddc892 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#126652 - Manishearth:anon-const-scope, r=bj…

    …orn3,Urgau
    
    Clarify that anonymous consts still do introduce a new scope
    
    See rust-lang#120363 (comment)
    
    This error message is misleading: it's trying to say that `const _ : () = ...` is a workaround for the lint, but by saying that anonymous constants are treated as being in the parent scope, it makes them appear useless for scope-hiding.
    
    They *are* useful for scope-hiding, they are simply treated as part of the parent scope when it comes to this lint.
    matthiaskrgr authored Jun 20, 2024
    Configuration menu
    Copy the full SHA
    03d558f View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#126703 - the8472:on-blackbox-crypto-use, r=…

    …scottmcm
    
    reword the hint::blackbox non-guarantees
    
    People were tripped up by the "precludes", interpreting it that this function must not ever be used in cryptographic contexts rather than the std lib merely making zero promises about it being fit-for-purpose.
    
    What remains unchanged is that if someone does try to use it *despite the warnings* then it is on them to pin their compiler versions and verify the assembly of every single binary build they do.
    matthiaskrgr authored Jun 20, 2024
    Configuration menu
    Copy the full SHA
    af073e4 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#126708 - nnethercote:minimize-can_begin_lit…

    …eral_maybe_minus, r=compiler-errors
    
    Minimize `can_begin_literal_maybe_minus` usage
    
    `can_begin_literal_maybe_minus` is used in a few confusing ways. This PR makes them clearer.
    
    r? ``@spastorino``
    matthiaskrgr authored Jun 20, 2024
    Configuration menu
    Copy the full SHA
    c979535 View commit details
    Browse the repository at this point in the history