-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 #119557
Rollup of 8 pull requests #119557
Commits on Dec 21, 2023
-
Switch from using
//~ERROR
annotations with--error-format
to `er……ror-pattern` Resolves Issue rust-lang#118752
Configuration menu - View commit details
-
Copy full SHA for af44e71 - Browse repository at this point
Copy the full SHA af44e71View commit details
Commits on Dec 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0f9baa8 - Browse repository at this point
Copy the full SHA 0f9baa8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bf2794 - Browse repository at this point
Copy the full SHA 4bf2794View commit details
Commits on Dec 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7e3f5f8 - Browse repository at this point
Copy the full SHA 7e3f5f8View commit details
Commits on Dec 29, 2023
-
bootstrap: Move -Clto= setting from Rustc::run to rustc_cargo
It prevents a full rebuild of stage 1 compiler when issuing "x.py test" with rust.lto != thin-local in config.toml.
Configuration menu - View commit details
-
Copy full SHA for 786e0bb - Browse repository at this point
Copy the full SHA 786e0bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a08ba6 - Browse repository at this point
Copy the full SHA 5a08ba6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71dacdf - Browse repository at this point
Copy the full SHA 71dacdfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7eeaaa2 - Browse repository at this point
Copy the full SHA 7eeaaa2View commit details
Commits on Jan 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c21cfe8 - Browse repository at this point
Copy the full SHA c21cfe8View commit details
Commits on Jan 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 695a02e - Browse repository at this point
Copy the full SHA 695a02eView commit details -
Recover parentheses in range patterns
Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
Configuration menu - View commit details
-
Copy full SHA for 4e0badd - Browse repository at this point
Copy the full SHA 4e0baddView commit details -
Rollup merge of rust-lang#119184 - Rajveer100:branch-for-issue-118752…
…, r=davidtwco Switch from using `//~ERROR` annotations with `--error-format` to `error-pattern` Fixes rust-lang#118752 As noticed by `@jyn514` while working on a patch, tests failed due to `//~ERROR` annotations used in combination with the older `--error-format` which is now `error-pattern`.
Configuration menu - View commit details
-
Copy full SHA for 7aaa1eb - Browse repository at this point
Copy the full SHA 7aaa1ebView commit details -
Rollup merge of rust-lang#119325 - RalfJung:custom-mir, r=compiler-er…
…rors custom mir: make it clear what the return block is Custom MIR recently got support for specifying the "unwind action", so now there's two things coming after the actual call part of `Call` terminators. That's not very self-explaining so I propose we change the syntax to imitate keyword arguments: ``` Call(popped = Vec::pop(v), ReturnTo(drop), UnwindContinue()) ``` Also fix some outdated docs and add some docs to `Call` and `Drop`.
Configuration menu - View commit details
-
Copy full SHA for 2d62db7 - Browse repository at this point
Copy the full SHA 2d62db7View commit details -
Rollup merge of rust-lang#119391 - DaniPopes:catch-flatten, r=davidtwco
Use Result::flatten in catch_with_exit_code
Configuration menu - View commit details
-
Copy full SHA for 5903e6a - Browse repository at this point
Copy the full SHA 5903e6aView commit details -
Rollup merge of rust-lang#119397 - ShE3py:pat-range-paren-recovery, r…
…=fmease Recover parentheses in range patterns Before: ```rs match n { (0).. => (), _ => () } ``` ``` error: expected one of `=>`, `if`, or `|`, found `..` --> src/lib.rs:3:12 | 3 | (0).. => (), | ^^ expected one of `=>`, `if`, or `|` ``` After: ``` error: range pattern bounds cannot have parentheses --> main.rs:3:5 | 3 | (0).. => (), | ^ ^ | help: remove these parentheses | 3 - (0).. => (), 3 + 0.. => (), | ``` This sets the groundwork for rust-lang#118625, which will extend the recovery to expressions like `(0 + 1)..` where users may tend to add parentheses to avoid dealing with precedence. --- `@rustbot` label +A-parser +A-patterns +A-diagnostics
Configuration menu - View commit details
-
Copy full SHA for 39b4731 - Browse repository at this point
Copy the full SHA 39b4731View commit details -
Rollup merge of rust-lang#119414 - xry111:xry111/lto-test, r=Mark-Sim…
…ulacrum bootstrap: Move -Clto= setting from Rustc::run to rustc_cargo It prevents a full rebuild of stage 1 compiler when issuing "x.py test" with rust.lto != thin-local in config.toml.
Configuration menu - View commit details
-
Copy full SHA for 048081c - Browse repository at this point
Copy the full SHA 048081cView commit details -
Rollup merge of rust-lang#119417 - compiler-errors:closure-checking, …
…r=davidtwco Uplift some miscellaneous coroutine-specific machinery into `check_closure` This PR uplifts some of the logic in `check_fn` that is specific to checking coroutines, which always flows through `check_closure`. This is just some miscellaneous clean up that I've wanted to do, especially because I'm poking around this code to make it work for async closures.
Configuration menu - View commit details
-
Copy full SHA for 83a3441 - Browse repository at this point
Copy the full SHA 83a3441View commit details -
Rollup merge of rust-lang#119527 - klensy:ordering, r=compiler-errors
don't reexport atomic::ordering via rustc_data_structures, use std import This looks simpler.
Configuration menu - View commit details
-
Copy full SHA for 82ec223 - Browse repository at this point
Copy the full SHA 82ec223View commit details -
Rollup merge of rust-lang#119540 - fmease:no-effect-args-inside-dyn-t…
…rait, r=compiler-errors Don't synthesize host effect args inside trait object types While we were indeed emitting an error for `~const` & `const` trait bounds in trait object types, we were still synthesizing host effect args for them. Since we don't record the original trait bound modifiers for dyn-Trait in `hir::TyKind::TraitObject` (unlike we do for let's say impl-Trait, `hir::TyKind::OpaqueTy`), AstConv just assumes `ty::BoundConstness::NotConst` in `conv_object_ty_poly_trait_ref` which given `<host> dyn ~const NonConstTrait` resulted in us not realizing that `~const` was used on a non-const trait which lead to a failed assertion in the end. Instead of updating `hir::TyKind::TraitObject` to track this kind of information, just strip the user-provided constness (similar to rust-lang#119505). Fixes rust-lang#119524.
Configuration menu - View commit details
-
Copy full SHA for c5e375c - Browse repository at this point
Copy the full SHA c5e375cView commit details