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 6 pull requests #103228

Merged
merged 16 commits into from
Oct 19, 2022
Merged

Rollup of 6 pull requests #103228

merged 16 commits into from
Oct 19, 2022

Commits on Oct 16, 2022

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

Commits on Oct 17, 2022

  1. Make transpose const and inline

    Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
    SUPERCILEX committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    1a1ebb0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    913393a View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2022

  1. Clean up query descriptions

    Use the same tense everywhere and prefer display over debug, as these
    descriptions are user facing.
    Noratrieb committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    4ed8345 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9c3bf4d View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2022

  1. Configuration menu
    Copy the full SHA
    63be7a2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b3edd9f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f5336a9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7eb2d4e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    35f1570 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#102863 - compiler-errors:call-suggestion-on…

    …-unimplemented, r=nagisa
    
    Standardize "use parentheses to call" suggestions between typeck and trait selection
    
    1. Suggest calling constructors, since they're basically `FnDef`s but they have a different def kind and hir representation, so we were leaving them out.
    2. Standardize the call suggestions between trait fulfillment errors and type mismatch. In the type mismatch suggestion, we suggest `/* Ty */` as the placeholder for an arg, and not the parameter's name, which is less helpful.
    3. Use `predicate_must_hold_modulo_regions` instead of matching on `EvaluationResult` -- this might cause some suggestions to be filtered out, but we really shouldn't be suggesting a call if it "may" hold, only when it "must" hold.
    4. Borrow some logic from `extract_callable_info` to generalize this suggestion to fn pointers, type parameters, and opaque types.
    
    Fixes rust-lang#102852
    Dylan-DPC authored Oct 19, 2022
    Configuration menu
    Copy the full SHA
    5c2c476 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#103034 - nathanwhit:let-chains-rhs-temporar…

    …ies, r=wesleywiser
    
    Let expressions on RHS shouldn't be terminating scopes
    
    Fixes rust-lang#100276.
    
    Before this PR, we were unconditionally marking the RHS of short-circuiting binary expressions as a terminating scope.
    
    In the case of a let chain where the `let` expression was on the RHS, this meant that temporaries within the `let` expr would only live until the end of the expression. Since this only affected the RHS, this led to surprising behavior ([example](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=d1b0a5d1f01882f9c89c2194a75eb19f)).
    
    After this PR, we only mark the RHS as a terminating scope if it is not a `let` expression.
    Dylan-DPC authored Oct 19, 2022
    Configuration menu
    Copy the full SHA
    48c5e0c View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#103127 - SUPERCILEX:inline-const-uninit, r=…

    …scottmcm
    
    Make transpose const and inline
    
    r? `@scottmcm`
    
    - These should have been const from the beginning since we're never going to do more than a transmute.
    - Inline these always because that's what every other method in MaybeUninit which simply casts does. :) Ok, but a stronger justification is that because we're taking in arrays by `self`, not inlining would defeat the whole purpose of using `MaybeUninit` due to the copying.
    Dylan-DPC authored Oct 19, 2022
    Configuration menu
    Copy the full SHA
    f4afb9d View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#103153 - ChrisDenton:leak-oom, r=m-ou-se

    Allow `Vec::leak` when using `no_global_oom_handling`
    
    As [the documentation notes](https://doc.rust-lang.org/std/vec/struct.Vec.html#method.leak), `Vec::leak` hasn't allocated since 1.57.
    
    cc `@Ericson2314` in case I'm missing something.
    Dylan-DPC authored Oct 19, 2022
    Configuration menu
    Copy the full SHA
    d056ea8 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#103182 - Nilstrieb:query-desc-cleanup, r=ol…

    …i-obk
    
    Clean up query descriptions
    
    Use the same tense everywhere and prefer display over debug, as these descriptions are user facing.
    Dylan-DPC authored Oct 19, 2022
    Configuration menu
    Copy the full SHA
    02d6135 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#103216 - cjgillot:issue-103210, r=jackh726

    Consider patterns in fn params in an `Elided(Infer)` lifetime rib.
    
    Fixes rust-lang#103210
    Dylan-DPC authored Oct 19, 2022
    Configuration menu
    Copy the full SHA
    32159e3 View commit details
    Browse the repository at this point in the history