-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 #133135
Rollup of 6 pull requests #133135
Commits on Nov 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3d3b515 - Browse repository at this point
Copy the full SHA 3d3b515View commit details
Commits on Nov 15, 2024
-
Trim whitespace in RemoveLet primary span
Separate `RemoveLet` span into primary span for `let` and removal suggestion span for `let `, so that primary span does not include whitespace. Fixes: rust-lang#133031 Signed-off-by: Tyrone Wu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dd557c9 - Browse repository at this point
Copy the full SHA dd557c9View commit details
Commits on Nov 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 427d915 - Browse repository at this point
Copy the full SHA 427d915View commit details -
Configuration menu - View commit details
-
Copy full SHA for f502dce - Browse repository at this point
Copy the full SHA f502dceView commit details -
Increase accuracy of
if
condition misparse suggestionLook at the expression that was parsed when trying to recover from a bad `if` condition to determine what was likely intended by the user beyond "maybe this was meant to be an `else` body". ``` error: expected `{`, found `map` --> $DIR/missing-dot-on-if-condition-expression-fixable.rs:4:30 | LL | for _ in [1, 2, 3].iter()map(|x| x) {} | ^^^ expected `{` | help: you might have meant to write a method call | LL | for _ in [1, 2, 3].iter().map(|x| x) {} | + ```
Configuration menu - View commit details
-
Copy full SHA for 04fe839 - Browse repository at this point
Copy the full SHA 04fe839View commit details -
Better account for
else if
macro conditions mising anif
If a macro statement has been parsed after `else`, suggest a missing `if`: ``` error: expected `{`, found `falsy` --> $DIR/else-no-if.rs:47:12 | LL | } else falsy! {} { | ---- ^^^^^ | | | expected an `if` or a block after this `else` | help: add an `if` if this is the condition of a chained `else if` statement | LL | } else if falsy! {} { | ++ ```
Configuration menu - View commit details
-
Copy full SHA for 629a69f - Browse repository at this point
Copy the full SHA 629a69fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c09c73b - Browse repository at this point
Copy the full SHA c09c73bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6913194 - Browse repository at this point
Copy the full SHA 6913194View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5eef5ee - Browse repository at this point
Copy the full SHA 5eef5eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 543627d - Browse repository at this point
Copy the full SHA 543627dView commit details
Commits on Nov 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ec65dfc - Browse repository at this point
Copy the full SHA ec65dfcView commit details -
Rollup merge of rust-lang#133029 - veluca93:abi-checks-tier3, r=worki…
…ngjubilee ABI checks: add support for some tier3 arches, warn on others. Followup to - rust-lang#132842 - rust-lang#132173 - rust-lang#131800 r? ``@workingjubilee``
Configuration menu - View commit details
-
Copy full SHA for 2d9690d - Browse repository at this point
Copy the full SHA 2d9690dView commit details -
Rollup merge of rust-lang#133051 - estebank:cond-misparse, r=jieyouxu
Increase accuracy of `if` condition misparse suggestion Fix rust-lang#132656. Look at the expression that was parsed when trying to recover from a bad `if` condition to determine what was likely intended by the user beyond "maybe this was meant to be an `else` body". ``` error: expected `{`, found `map` --> $DIR/missing-dot-on-if-condition-expression-fixable.rs:4:30 | LL | for _ in [1, 2, 3].iter()map(|x| x) {} | ^^^ expected `{` | help: you might have meant to write a method call | LL | for _ in [1, 2, 3].iter().map(|x| x) {} | + ``` If a macro statement has been parsed after `else`, suggest a missing `if`: ``` error: expected `{`, found `falsy` --> $DIR/else-no-if.rs:47:12 | LL | } else falsy! {} { | ---- ^^^^^ | | | expected an `if` or a block after this `else` | help: add an `if` if this is the condition of a chained `else if` statement | LL | } else if falsy! {} { | ++ ```
Configuration menu - View commit details
-
Copy full SHA for 2f62fd3 - Browse repository at this point
Copy the full SHA 2f62fd3View commit details -
Rollup merge of rust-lang#133060 - tyrone-wu:removelet-span-suggestio…
…n, r=jieyouxu Trim whitespace in RemoveLet primary span Separate `RemoveLet` span into primary span for `let` and removal suggestion span for `let `, so that primary span does not include whitespace. Fixes: rust-lang#133031
Configuration menu - View commit details
-
Copy full SHA for 0b157e8 - Browse repository at this point
Copy the full SHA 0b157e8View commit details -
Rollup merge of rust-lang#133093 - est31:let_chains_tests, r=traviscross
Let chains tests Filing this as this marks off two of the open issues in rust-lang#132833: * extending the tests for `move-guard-if-let-chain.rs` and `conflicting_bindings.rs` to have chains with multiple let's (one implementation could for example search for the first `let` and then terminate). * An instance where a temporary lives shorter than with nested ifs, breaking compilation: rust-lang#103476. This was fixed in the end by the if let rescoping work. Closes rust-lang#103476
Configuration menu - View commit details
-
Copy full SHA for ccc3f86 - Browse repository at this point
Copy the full SHA ccc3f86View commit details -
Rollup merge of rust-lang#133116 - RalfJung:const-null-ptr, r=dtolnay
stabilize const_ptr_is_null FCP passed in rust-lang#74939. The second commit cleans up const stability around UB checks a bit, now that everything they need (except for `const_eval_select`) is stable. Fixes rust-lang#74939
Configuration menu - View commit details
-
Copy full SHA for af1c8be - Browse repository at this point
Copy the full SHA af1c8beView commit details -
Rollup merge of rust-lang#133126 - ohno418:fix-String-doc, r=jhpratt
alloc: fix `String`'s doc Just a minor fix for `String` struct.
Configuration menu - View commit details
-
Copy full SHA for defc866 - Browse repository at this point
Copy the full SHA defc866View commit details