-
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 #117228
Rollup of 8 pull requests #117228
Commits on Oct 18, 2023
-
refactor(compiler/resolve): simplify some code
Removes unnecessary allocates and double-sorting the same vector, makes the code a little nicer.
Configuration menu - View commit details
-
Copy full SHA for e68edb8 - Browse repository at this point
Copy the full SHA e68edb8View commit details
Commits on Oct 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 855444e - Browse repository at this point
Copy the full SHA 855444eView commit details
Commits on Oct 25, 2023
-
Avoid unbounded O(n^2) when parsing nested type args
When encountering code like `f::<f::<f::<f::<f::<f::<f::<f::<...` with unmatched closing angle brackets, add a linear check that avoids the exponential behavior of the parse recovery mechanism. Fix rust-lang#117080.
Configuration menu - View commit details
-
Copy full SHA for 2dec1bc - Browse repository at this point
Copy the full SHA 2dec1bcView commit details -
Add arg_count field to Body in Stable MIR
This field allows SMIR consumers to identify which locals correspond to argument locals. It simply exposes the arg_count field from the MIR representation.
Configuration menu - View commit details
-
Copy full SHA for e4c41b0 - Browse repository at this point
Copy the full SHA e4c41b0View commit details -
Replace arg_count in public API with return/arg getters
This commit hides the arg_count field in Body and instead exposes more stable and user-friendly methods to get the return and argument locals. As a result, Body instances must now be constructed using the `new` function.
Configuration menu - View commit details
-
Copy full SHA for 93d1b3e - Browse repository at this point
Copy the full SHA 93d1b3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f4d80a5 - Browse repository at this point
Copy the full SHA f4d80a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 372c533 - Browse repository at this point
Copy the full SHA 372c533View commit details -
Add a public API to get all body locals
This is particularly helpful for the ui tests, but also could be helpful for Stable MIR users who just want all the locals without needing to concatenate responses
Configuration menu - View commit details
-
Copy full SHA for 39b293f - Browse repository at this point
Copy the full SHA 39b293fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72e8690 - Browse repository at this point
Copy the full SHA 72e8690View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca29c27 - Browse repository at this point
Copy the full SHA ca29c27View commit details -
Move a
use
to a more sensible spot.I.e. in the source file where it's used.
Configuration menu - View commit details
-
Copy full SHA for 8da1b33 - Browse repository at this point
Copy the full SHA 8da1b33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cf2a74 - Browse repository at this point
Copy the full SHA 3cf2a74View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0c990e - Browse repository at this point
Copy the full SHA e0c990eView commit details -
Rename internal_locals to inner_locals
The word internal has connotations about information that's not exposed. It's more accurate to say that the remaining locals apply only to the inner part of the function, so I'm renaming them to inner locals.
Configuration menu - View commit details
-
Copy full SHA for fe4dfb8 - Browse repository at this point
Copy the full SHA fe4dfb8View commit details -
Update Place and Operand to take slices
The latest locals() method in stable MIR returns slices instead of vecs. This commit also includes fixes to the existing tests that previously referenced the private locals field.
Configuration menu - View commit details
-
Copy full SHA for 4b23bd4 - Browse repository at this point
Copy the full SHA 4b23bd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for bac7d5b - Browse repository at this point
Copy the full SHA bac7d5bView commit details
Commits on Oct 26, 2023
-
The value of
-Cinstrument-coverage=
doesn't need to beOption
Not using this flag is identical to passing `-Cinstrument-coverage=off`, so there's no need to distinguish between `None` and `Some(Off)`.
Configuration menu - View commit details
-
Copy full SHA for 9f5fc02 - Browse repository at this point
Copy the full SHA 9f5fc02View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab7f64c - Browse repository at this point
Copy the full SHA ab7f64cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d55487d - Browse repository at this point
Copy the full SHA d55487dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d572729 - Browse repository at this point
Copy the full SHA d572729View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1b1458 - Browse repository at this point
Copy the full SHA b1b1458View commit details -
Rollup merge of rust-lang#116905 - Fenex:refactor/compiler/resolve, r…
…=petrochenkov refactor(compiler/resolve): simplify some code Removes unnecessary allocate and double-sorting the same vector, makes the code a little nicer.
Configuration menu - View commit details
-
Copy full SHA for 17fb2f4 - Browse repository at this point
Copy the full SHA 17fb2f4View commit details -
Rollup merge of rust-lang#117095 - klinvill:smir-fn-arg-count, r=oli-obk
Add way to differentiate argument locals from other locals in Stable MIR This PR resolves rust-lang/project-stable-mir#47 which request a way to differentiate argument locals in a SMIR `Body` from other locals. Specifically, this PR exposes the `arg_count` field from the MIR `Body`. However, I'm opening this as a draft PR because I think there are a few outstanding questions on how this information should be exposed and described. Namely: - Is exposing `arg_count` the best way to surface this information to SMIR users? Would it be better to leave `arg_count` as a private field and add public methods (e.g. `fn arguments(&self) -> Iter<'_, LocalDecls>`) that may use the underlying `arg_count` info from the MIR body, but expose this information to users in a more convenient form? Or is it best to stick close to the current MIR convention? - If the answer to the above point is to stick with the current MIR convention (`arg_count`), is it reasonable to also commit to sticking to the current MIR convention that the first local is always the return local, while the next `arg_count` locals are always the (in-order) argument locals? - Should `Body` in SMIR only represent function bodies (as implied by the comment I added)? That seems to be the current case in MIR, but should this restriction always be the case for SMIR? r? `@celinval` r? `@oli-obk`
Configuration menu - View commit details
-
Copy full SHA for b66c6e7 - Browse repository at this point
Copy the full SHA b66c6e7View commit details -
Rollup merge of rust-lang#117143 - estebank:issue-117080, r=wesleywiser
Avoid unbounded O(n^2) when parsing nested type args When encountering code like `f::<f::<f::<f::<f::<f::<f::<f::<...` with unmatched closing angle brackets, add a linear check that avoids the exponential behavior of the parse recovery mechanism. Fix rust-lang#117080, fix rust-lang#115414.
Configuration menu - View commit details
-
Copy full SHA for 7eb0548 - Browse repository at this point
Copy the full SHA 7eb0548View commit details -
Rollup merge of rust-lang#117194 - nnethercote:rustc_incremental, r=c…
…jgillot Minor improvements to `rustc_incremental` Just some things I spotted while looking at this code. r? `@cjgillot`
Configuration menu - View commit details
-
Copy full SHA for 577026c - Browse repository at this point
Copy the full SHA 577026cView commit details -
Rollup merge of rust-lang#117202 - TaKO8Ki:revert-remove-TaKO8Ki-from…
…-reviewers, r=Nilstrieb Revert "Remove TaKO8Ki from reviewers" ref rust-lang#116061 It's been a month since this pull request, and I now have some available time for reviews. Would it be okay to revisit it as a reviewer? This reverts commit 8e06b25. r? `@Nilstrieb`
Configuration menu - View commit details
-
Copy full SHA for 36b794e - Browse repository at this point
Copy the full SHA 36b794eView commit details -
Rollup merge of rust-lang#117207 - Zalathar:no-option, r=compiler-errors
The value of `-Cinstrument-coverage=` doesn't need to be `Option` (Extracted from rust-lang#117199, since this is a purely internal cleanup that can land independently.) Not using this flag is identical to passing `-Cinstrument-coverage=off`, so there's no need to distinguish between `None` and `Some(Off)`.
Configuration menu - View commit details
-
Copy full SHA for 24bdc37 - Browse repository at this point
Copy the full SHA 24bdc37View commit details -
Rollup merge of rust-lang#117214 - oli-obk:error_shenanigans, r=compi…
…ler-errors Quietly fail if an error has already occurred fixes rust-lang#117195
Configuration menu - View commit details
-
Copy full SHA for 70a4678 - Browse repository at this point
Copy the full SHA 70a4678View commit details -
Rollup merge of rust-lang#117221 - fmease:TypeFlags-HAS_TY_GENERATOR-…
…to-COROUTINE, r=lqd Rename type flag `HAS_TY_GENERATOR` to `HAS_TY_COROUTINE` r? oli-obk
Configuration menu - View commit details
-
Copy full SHA for a461de7 - Browse repository at this point
Copy the full SHA a461de7View commit details