-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 #93594
Rollup of 8 pull requests #93594
Conversation
The previous implementation swapped lower and upper 64-bits of a result of modular addition, so the function was non-associative.
Previously, when rustc was provided an async function that tried to mutate through a shared reference to an implicit self (as shown in the ui test), rustc would suggest modifying the parameter signature to `&mut` + the fully qualified name of the ty (in the case of the repro `S`). If a user modified their code to match the suggestion, the compiler would not accept it. This commit modifies the suggestion so that when rustc is provided the ui test that is also attached in this commit, it suggests (correctly) `&mut self`. We try to be careful about distinguishing between implicit and explicit self annotations, since the latter seem to be handled correctly already. Fixes rust-lang#93093
…aelwoerister Make `Fingerprint::combine_commutative` associative The previous implementation swapped lower and upper 64-bits of a result of modular addition, so the function was non-associative. r? `@Aaron1011`
[borrowck] Fix help on mutating &self in async fns Previously, when rustc was provided an async function that tried to mutate through a shared reference to an implicit self (as shown in the ui test), rustc would suggest modifying the parameter signature to `&mut` + the fully qualified name of the ty (in the case of the repro `S`). If a user modified their code to match the suggestion, the compiler would not accept it. This commit modifies the suggestion so that when rustc is provided the ui test that is also attached in this commit, it suggests (correctly) `&mut self`. We try to be careful about distinguishing between implicit and explicit self annotations, since the latter seem to be handled correctly already. This is my first PR here so I'm pretty sure I probably missed something/could use better terminology. I also didn't try to make the match exhaustive since implicit self is the only real special case that I need to handle (that I'm aware of), and I'm pretty sure there's a cleaner way to do this so any advice would be greatly appreciated! (I'm also not terribly confident about how I wrote the ui tests) here is your cc as requested `@compiler-errors` This is an attempt to fix rust-lang#93093
…oli-obk Prevent lifetime elision in type alias Fixes rust-lang#93401. Apparently, the problem has been fixed in the compiler. r? `@oli-obk`
Validate that values in switch int terminator are unique
…tion, r=lcnr better suggestion for duplicated `where` clause fixes rust-lang#93567
… r=lcnr don't suggest adding `let` due to bad assignment expressions inside of `while` loop adds a check that our `lhs` expression is actually within the conditional part of the `while` loop, instead of anywhere in the `while` body. fixes rust-lang#93486
More let_else adoptions Continuation of rust-lang#89933, rust-lang#91018, rust-lang#91481, rust-lang#93046.
Remove unused dep from rustc_arena
@bors r+ rollup=never p=8 |
📌 Commit 93155c5 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (27f5d83): comparison url. Summary: This benchmark run did not return any relevant results. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
Successful merges:
Fingerprint::combine_commutative
associative #92528 (MakeFingerprint::combine_commutative
associative)where
clause #93571 (better suggestion for duplicatedwhere
clause)let
due to bad assignment expressions inside ofwhile
loop #93574 (don't suggest addinglet
due to bad assignment expressions inside ofwhile
loop)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup