-
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 9 pull requests #122457
Rollup of 9 pull requests #122457
Commits on Mar 1, 2024
-
Give
TRACK_DIAGNOSTIC
a return value.This means `DiagCtxtInner::emit_diagnostic` can return its result directly, rather than having to modify a local variable.
Configuration menu - View commit details
-
Copy full SHA for bf62d59 - Browse repository at this point
Copy the full SHA bf62d59View commit details -
Inline and remove
Level::get_diagnostic_id
.It has a single call site, and this will enable subsequent refactorings.
Configuration menu - View commit details
-
Copy full SHA for ecd3718 - Browse repository at this point
Copy the full SHA ecd3718View commit details -
Move
DelayedBug
handling into thematch
.It results in a tiny bit of duplication (another `self.treat_next_err_as_bug()` condition) but I think it's worth it to get more code into the main `match`.
Configuration menu - View commit details
-
Copy full SHA for 272e60b - Browse repository at this point
Copy the full SHA 272e60bView commit details -
Reorder
has_future_breakage
handling.This will enable additional refactorings.
Configuration menu - View commit details
-
Copy full SHA for c81767e - Browse repository at this point
Copy the full SHA c81767eView commit details -
Move
Expect
/ForceWarning
handling into thematch
.Note that `self.suppressed_expected_diag` is no longer set for `ForceWarning`, which is good. Nor is `TRACK_DIAGNOSTIC` called for `Allow`, which is also good.
Configuration menu - View commit details
-
Copy full SHA for aec4bdb - Browse repository at this point
Copy the full SHA aec4bdbView commit details -
Add comments about
TRACK_DIAGNOSTIC
use.Also add an assertion for the levels allowed with `has_future_breakage`.
Configuration menu - View commit details
-
Copy full SHA for a7d9262 - Browse repository at this point
Copy the full SHA a7d9262View commit details -
Make the
match
inemit_diagnostic
complete.This match is complex enough that it's a good idea to enumerate every variant. This also means `can_be_top_or_sub` can just be `can_be_subdiag`.
Configuration menu - View commit details
-
Copy full SHA for 7ef605b - Browse repository at this point
Copy the full SHA 7ef605bView commit details
Commits on Mar 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 15b71f4 - Browse repository at this point
Copy the full SHA 15b71f4View commit details
Commits on Mar 12, 2024
-
Add methods to create constants
I've been experimenting with transforming the StableMIR to instrument the code with potential UB checks. The modified body will only be used by our analysis tool, however, constants in StableMIR must be backed by rustc constants. Thus, I'm adding a few functions to build constants, such as building string and other primitives.
Configuration menu - View commit details
-
Copy full SHA for c076509 - Browse repository at this point
Copy the full SHA c076509View commit details -
Configuration menu - View commit details
-
Copy full SHA for 893a910 - Browse repository at this point
Copy the full SHA 893a910View commit details -
Configuration menu - View commit details
-
Copy full SHA for a38a556 - Browse repository at this point
Copy the full SHA a38a556View commit details
Commits on Mar 13, 2024
-
Various style improvements to
rustc_lint::levels
- Replace some nested if-let with let-chains - Tweak a match pattern to allow shorthand struct syntax - Fuse an `is_empty` check with getting the last element - Merge some common code that emits `MalformedAttribute` and continues - Format `"{tool}::{name}"` in a way that's consistent with other match arms - Replace if-let-else-panic with let-else - Use early-exit to flatten a method body
Configuration menu - View commit details
-
Copy full SHA for f2fcfe8 - Browse repository at this point
Copy the full SHA f2fcfe8View commit details -
CFI: Break tests into smaller files
Break type metadata identifiers tests into smaller set of tests/files, and move CFI (and KCFI) tests to a cfi (and kcfi) subdirectory,
Configuration menu - View commit details
-
Copy full SHA for bf71825 - Browse repository at this point
Copy the full SHA bf71825View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90acda1 - Browse repository at this point
Copy the full SHA 90acda1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f10ebfe - Browse repository at this point
Copy the full SHA f10ebfeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 44b1f8a - Browse repository at this point
Copy the full SHA 44b1f8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31fa142 - Browse repository at this point
Copy the full SHA 31fa142View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71ef9e2 - Browse repository at this point
Copy the full SHA 71ef9e2View commit details -
Move generate_stacktrace_from_stack away from InterpCx to avoid havin…
…g to know the `Machine` type
Configuration menu - View commit details
-
Copy full SHA for bd7580b - Browse repository at this point
Copy the full SHA bd7580bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aee665 - Browse repository at this point
Copy the full SHA 7aee665View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffaf082 - Browse repository at this point
Copy the full SHA ffaf082View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66a46bb - Browse repository at this point
Copy the full SHA 66a46bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for af59eec - Browse repository at this point
Copy the full SHA af59eecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a1a6fa - Browse repository at this point
Copy the full SHA 2a1a6faView commit details -
Rename some things around validation error reporting to signal that i…
…t is in fact about validation failures
Configuration menu - View commit details
-
Copy full SHA for 3393227 - Browse repository at this point
Copy the full SHA 3393227View commit details -
Configuration menu - View commit details
-
Copy full SHA for b6312eb - Browse repository at this point
Copy the full SHA b6312ebView commit details -
Make incremental sessions identity no longer depend on the crate name…
…s provided by source code
Configuration menu - View commit details
-
Copy full SHA for 12cd322 - Browse repository at this point
Copy the full SHA 12cd322View commit details -
Configuration menu - View commit details
-
Copy full SHA for 514b274 - Browse repository at this point
Copy the full SHA 514b274View commit details -
Rollup merge of rust-lang#104353 - clarfonthey:cstr-bytes-iter, r=cuv…
…iper Add CStr::bytes iterator See rust-lang/libs-team#135 for an ACP. Since rust-lang/libs-team#134 was also accepted, this type is now `core::ffi::c_str::Bytes` instead of `core::ffi::CStrBytes`.
Configuration menu - View commit details
-
Copy full SHA for 11e1f53 - Browse repository at this point
Copy the full SHA 11e1f53View commit details -
Rollup merge of rust-lang#120699 - nnethercote:rm-useless-TRACK_DIAGN…
…OSTIC-calls, r=oli-obk Document `TRACK_DIAGNOSTIC` calls. r? ```@cjgillot```
Configuration menu - View commit details
-
Copy full SHA for 0eab80b - Browse repository at this point
Copy the full SHA 0eab80bView commit details -
Rollup merge of rust-lang#120943 - petrochenkov:somehir3, r=oli-obk
Create some minimal HIR for associated opaque types `LocalDefId`s for opaque types in traits and impls are created after AST -> HIR lowering, so they don't have corresponding HIR and return their various properties through fed queries. In this PR I also feed some core HIR-related queries for these `LocalDefId`s (which happen to be HIR owners). As a result all `LocalDefId`s now have corresponding `HirId`s and HIR nodes, and "optional" methods like `opt_local_def_id_to_hir_id` and `opt_hir_node_by_def_id` can be removed. Follow up to rust-lang#120206.
Configuration menu - View commit details
-
Copy full SHA for f4e9710 - Browse repository at this point
Copy the full SHA f4e9710View commit details -
Rollup merge of rust-lang#121764 - Zoxc:incr-sess-no-source, r=oli-obk
Make incremental sessions identity no longer depend on the crate names provided by source code This makes incremental sessions identity no longer depend on the crate names provided by source code, implementing rust-lang/compiler-team#726. r? ``@oli-obk``
Configuration menu - View commit details
-
Copy full SHA for e4d89a8 - Browse repository at this point
Copy the full SHA e4d89a8View commit details -
Rollup merge of rust-lang#122375 - rcvalle:rust-cfi-break-tests-into-…
…smaller-files, r=compiler-errors CFI: Break tests into smaller files Break type metadata identifiers tests into smaller set of tests/files, and move CFI (and KCFI) tests to a cfi (and kcfi) subdirectory,
Configuration menu - View commit details
-
Copy full SHA for 0f8bae1 - Browse repository at this point
Copy the full SHA 0f8bae1View commit details -
Rollup merge of rust-lang#122397 - oli-obk:machine-read-hook2, r=Ralf…
…Jung Various cleanups around the const eval query providers r? ```@RalfJung``` after this, working on running validation before interning starts with swapping the order of two lines of code
Configuration menu - View commit details
-
Copy full SHA for c99ae2b - Browse repository at this point
Copy the full SHA c99ae2bView commit details -
Rollup merge of rust-lang#122405 - celinval:smir-new-const, r=oli-obk
Add methods to create StableMIR constant I've been experimenting with transforming the StableMIR to instrument the code with potential UB checks. The modified body will only be used by our analysis tool, however, constants in StableMIR must be backed by rustc constants. Thus, I'm adding a few functions to build constants, such as building string and other primitives. One question I have is whether we should create a global allocation instead for strings. r? ``@oli-obk``
Configuration menu - View commit details
-
Copy full SHA for 74f8248 - Browse repository at this point
Copy the full SHA 74f8248View commit details -
Rollup merge of rust-lang#122416 - Zalathar:levels, r=petrochenkov
Various style improvements to `rustc_lint::levels` While reading this file, I noticed a few opportunities to make things a little nicer: - Replace some nested if-let with let-chains - Tweak a match pattern to allow shorthand struct syntax - Fuse an `is_empty` check with getting the last element - Merge some common code that emits `MalformedAttribute` and continues - Format `"{tool}::{name}"` in a way that's consistent with other match arms - Replace if-let-else-panic with let-else - Use early-exit to flatten a method body Some of these changes cause indentation churn, so ignoring whitespace is recommended.
Configuration menu - View commit details
-
Copy full SHA for f4d4443 - Browse repository at this point
Copy the full SHA f4d4443View commit details -
Rollup merge of rust-lang#122440 - RalfJung:required-consts, r=oli-obk
const-eval: organize and extend tests for required-consts This includes some tests that are known-broken and hence disabled (due to rust-lang#107503). r? ``@oli-obk``
Configuration menu - View commit details
-
Copy full SHA for b76648f - Browse repository at this point
Copy the full SHA b76648fView commit details