-
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 10 pull requests #119611
Rollup of 10 pull requests #119611
Commits on Dec 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5f56465 - Browse repository at this point
Copy the full SHA 5f56465View commit details -
Configuration menu - View commit details
-
Copy full SHA for a251974 - Browse repository at this point
Copy the full SHA a251974View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32cea61 - Browse repository at this point
Copy the full SHA 32cea61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 977546d - Browse repository at this point
Copy the full SHA 977546dView 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 76d616d - Browse repository at this point
Copy the full SHA 76d616dView commit details
Commits on Dec 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7fd2d8d - Browse repository at this point
Copy the full SHA 7fd2d8dView commit details
Commits on Jan 3, 2024
-
Rename some
Diagnostic
setters.`Diagnostic` has 40 methods that return `&mut Self` and could be considered setters. Four of them have a `set_` prefix. This doesn't seem necessary for a type that implements the builder pattern. This commit removes the `set_` prefixes on those four methods.
Configuration menu - View commit details
-
Copy full SHA for 505c137 - Browse repository at this point
Copy the full SHA 505c137View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5fe5d5d - Browse repository at this point
Copy the full SHA 5fe5d5dView commit details -
Remove forward for
downgrade_to_delayed_bug
.It's not used, and doesn't quite fit the general pattern. Also, `Diagnostic::downgrade_to_delayed_bug` doesn't need to return `&mut Self` for the same reason.
Configuration menu - View commit details
-
Copy full SHA for 096b844 - Browse repository at this point
Copy the full SHA 096b844View commit details -
- Move comments onto corresponding `Diagnostic` methods. - Make formatting more consistent.
Configuration menu - View commit details
-
Copy full SHA for caefa55 - Browse repository at this point
Copy the full SHA caefa55View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4a6239 - Browse repository at this point
Copy the full SHA b4a6239View commit details -
Remove unused
DiagnosticBuilder::struct_almost_fatal
.`create_almost_fatal` and `emit_almost_fatal` are always used instead.
Configuration menu - View commit details
-
Copy full SHA for 1e92223 - Browse repository at this point
Copy the full SHA 1e92223View commit details
Commits on Jan 4, 2024
-
Avoid some
rustc_errors::
qualifiers.These are misleading, because the mixture of `Level` and `rustc_errors::Level` makes it look like there are two different types involved.
Configuration menu - View commit details
-
Copy full SHA for 9560c58 - Browse repository at this point
Copy the full SHA 9560c58View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d35981 - Browse repository at this point
Copy the full SHA 4d35981View commit details -
Inline and remove
StringReader::struct_fatal_span_char
.It has a single call site.
Configuration menu - View commit details
-
Copy full SHA for 8e6bca6 - Browse repository at this point
Copy the full SHA 8e6bca6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03e9eff - Browse repository at this point
Copy the full SHA 03e9effView commit details -
Configuration menu - View commit details
-
Copy full SHA for af32054 - Browse repository at this point
Copy the full SHA af32054View commit details -
Remove
is_lint
field fromLevel::Error
.Because it's redundant w.r.t. `Diagnostic::is_lint`, which is present for every diagnostic level. `struct_lint_level_impl` was the only place that set the `Error` field to `true`, and it's also the only place that calls `Diagnostic::is_lint()` to set the `is_lint` field.
Configuration menu - View commit details
-
Copy full SHA for 8388112 - Browse repository at this point
Copy the full SHA 8388112View commit details -
It's not used within the repository in any way (e.g. in tests), and doesn't seem useful.
Configuration menu - View commit details
-
Copy full SHA for cf9484e - Browse repository at this point
Copy the full SHA cf9484eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 35ad2ae - Browse repository at this point
Copy the full SHA 35ad2aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bc7687 - Browse repository at this point
Copy the full SHA 5bc7687View commit details -
Move
i586-unknown-netbsd
from tier 2 to tier 3 platform support tableIt appears it was intended to be tier 3, but was accidentally added to tier 2.
Configuration menu - View commit details
-
Copy full SHA for 073ed0e - Browse repository at this point
Copy the full SHA 073ed0eView commit details -
Visit only reachable blocks in MIR lint
No functional changes - all checks have been emitted conditionally on block being rechable already.
Configuration menu - View commit details
-
Copy full SHA for 12b92c8 - Browse repository at this point
Copy the full SHA 12b92c8View commit details -
Fix validation and linting of injected MIR
Reevaluate `body.should_skip()` after updating the MIR phase to ensure that injected MIR is processed correctly. Update a few custom MIR tests that were ill-formed for the injected phase.
Configuration menu - View commit details
-
Copy full SHA for a084e06 - Browse repository at this point
Copy the full SHA a084e06View commit details -
Migrate memory overlap check from validator to lint
The check attempts to identify potential undefined behaviour, rather than whether MIR is well-formed. It belongs in the lint not validator.
Configuration menu - View commit details
-
Copy full SHA for df116ec - Browse repository at this point
Copy the full SHA df116ecView commit details
Commits on Jan 5, 2024
-
Rollup merge of rust-lang#119354 - fmease:negative_bounds-fixes, r=co…
…mpiler-errors Make `negative_bounds` internal & fix some of its issues r? compiler-errors
Configuration menu - View commit details
-
Copy full SHA for 98c9d72 - Browse repository at this point
Copy the full SHA 98c9d72View 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 3a19a92 - Browse repository at this point
Copy the full SHA 3a19a92View commit details -
Rollup merge of rust-lang#119420 - cjgillot:issue-119295, r=compiler-…
…errors Handle ForeignItem as TAIT scope. Fixes rust-lang#119295
Configuration menu - View commit details
-
Copy full SHA for 2dcaadb - Browse repository at this point
Copy the full SHA 2dcaadbView commit details -
Rollup merge of rust-lang#119506 - compiler-errors:visibilities-for-o…
…bject-safety-error, r=Nilstrieb Use `resolutions(()).effective_visiblities` to avoid cycle errors in `report_object_error` Inside of `report_object_error`, using the `effective_visibilities` query causes cycles since it calls `type_of`, which itself may call `typeck`, which may end up reporting its own object-safety errors. Fixes rust-lang#119346 Fixes rust-lang#119502
Configuration menu - View commit details
-
Copy full SHA for 3eebe88 - Browse repository at this point
Copy the full SHA 3eebe88View commit details -
Rollup merge of rust-lang#119538 - nnethercote:cleanup-errors-5, r=co…
…mpiler-errors Cleanup error handlers: round 5 More rustc_errors cleanups. A sequel to rust-lang#119171. r? ```@compiler-errors```
Configuration menu - View commit details
-
Copy full SHA for c537d20 - Browse repository at this point
Copy the full SHA c537d20View commit details -
Rollup merge of rust-lang#119566 - Zalathar:remove-spanview, r=Swatin…
…em,Nilstrieb Remove `-Zdump-mir-spanview` The `-Zdump-mir-spanview` flag was added back in rust-lang#76074, as a development/debugging aid for the initial work on what would eventually become `-Cinstrument-coverage`. It causes the compiler to emit an HTML file containing a function's source code, with various spans highlighted based on the contents of MIR. When the suggestion was made to [triage and remove unnecessary `-Z` flags (Zulip)](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/.60-Z.60.20option.20triage), I noted that this flag could potentially be worth removing, but I wanted to keep it around to see whether I found it useful for my own coverage work. But when I actually tried to use it, I ran into various issues (e.g. it crashes on `tests/coverage/closure.rs`). If I can't trust it to work properly without a full overhaul, then instead of diving down a rabbit hole of trying to fix arcane span-handling bugs, it seems better to just remove this obscure old code entirely. --- ```@rustbot``` label +A-code-coverage
Configuration menu - View commit details
-
Copy full SHA for 38e22ad - Browse repository at this point
Copy the full SHA 38e22adView commit details -
Rollup merge of rust-lang#119567 - nnethercote:rm-Zreport-delayed-bug…
…s, r=oli-obk Remove `-Zreport-delayed-bugs`. It's not used within the repository in any way (e.g. in tests), and doesn't seem useful. It was added in rust-lang#52568. r? ```@oli-obk```
Configuration menu - View commit details
-
Copy full SHA for 22a6343 - Browse repository at this point
Copy the full SHA 22a6343View commit details -
Rollup merge of rust-lang#119577 - tmiasko:lint, r=oli-obk
Migrate memory overlap check from validator to lint The check attempts to identify potential undefined behaviour, rather than whether MIR is well-formed. It belongs in the lint not validator. Follow up to changes from rust-lang#119077.
Configuration menu - View commit details
-
Copy full SHA for c224f4d - Browse repository at this point
Copy the full SHA c224f4dView commit details -
Rollup merge of rust-lang#119586 - GuillaumeGomez:jump-to-def-static-…
…methods, r=notriddle [rustdoc] Fix invalid handling for static method calls in jump to definition feature I realized when working on a clippy lint that static method calls on `Self` could not give me the method `Res`. For that, we need to use `typeck` and so that's what I did in here. It fixes the linking to static method calls. r? ```@notriddle```
Configuration menu - View commit details
-
Copy full SHA for eef3320 - Browse repository at this point
Copy the full SHA eef3320View commit details -
Rollup merge of rust-lang#119588 - Nemo157:i586-netbsd-tier-3, r=Nils…
…trieb Move `i586-unknown-netbsd` from tier 2 to tier 3 platform support table It appears it was intended to be tier 3, but was accidentally added to tier 2. Based on inspecting the PR adding it the table rust-lang#117170 and the fact that it is not built in CI which is one of the tier 2 requirements. cc ```@he32``` r? ```@Nilstrieb```
Configuration menu - View commit details
-
Copy full SHA for 2a10782 - Browse repository at this point
Copy the full SHA 2a10782View commit details