Repository navigation
Check for errors before encoding metadata - #166405
Merged
rust-bors[bot] merged 2 commits intoNov 24, 2026
Merged
Conversation
itsfuad
marked this pull request as ready for review
November 23, 2026 18:30
Collaborator
|
r? @camelid rustbot has assigned @camelid. Use Why was this reviewer chosen?The reviewer was selected based on:
|
camelid
approved these changes
Nov 23, 2026
Comment on lines
+912
to
+914
| // Don't do code generation if there were any errors. Likewise if | ||
| // there were any delayed bugs, because codegen will likely cause | ||
| // more ICEs, obscuring the original problem. |
Member
There was a problem hiding this comment.
This comment needs to be updated as well since now it's about skipping metadata and codegen.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Member
|
@bors r+ rollup |
Contributor
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
Rollup of 11 pull requests Successful merges: - #165769 (Fix invalid instantiation of fake intrinsic bodies) - #166374 (Undo accidental duplication checking for attributes on macro calls) - #166386 (Replace manual `AttributeParser` construction by `parse_limited_all`) - #162565 (Add `c_buffer_length` lint helper) - #166096 (llvm-wrapper: Pass more arguments to PreCodeGenCallback) - #166395 (std: fix positioned read/write on VxWorks) - #166404 (Change `ChildExt::kill_process_group` to be `&self`) - #166405 (Check for errors before encoding metadata) - #166412 (std: Fix locking test on GNU/Hurd) - #166413 (std: Fix symlink chmod test on GNU/Hurd) - #166421 (core: Stabilize `float_bits_const`)
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
Rollup merge of #166405 - itsfuad:fix/166278-mentioned-items-ice, r=camelid Check for errors before encoding metadata Fixes #166278 pr #165524 moved the `has_errors_or_delayed_bugs` check from before metadata encoding to after it. Then, for a lib crate, metadata encoding runs `exported_generic_symbols`, which runs mono item collection on bodies that failed const eval, like `[(); loop {}]`, and it ICEs because `mentioned_items` was never set. I moved the check back into `finish_and_emit_metadata`, after the test hook and before encoding, so the order is the same as before #165524. Now we only get the normal error, no panic. Added a UI test. cc @blyxyas @bjorn3
flip1995
pushed a commit
to flip1995/rust-clippy
that referenced
this pull request
Nov 26, 2026
Rollup of 11 pull requests Successful merges: - rust-lang/rust#165769 (Fix invalid instantiation of fake intrinsic bodies) - rust-lang/rust#166374 (Undo accidental duplication checking for attributes on macro calls) - rust-lang/rust#166386 (Replace manual `AttributeParser` construction by `parse_limited_all`) - rust-lang/rust#162565 (Add `c_buffer_length` lint helper) - rust-lang/rust#166096 (llvm-wrapper: Pass more arguments to PreCodeGenCallback) - rust-lang/rust#166395 (std: fix positioned read/write on VxWorks) - rust-lang/rust#166404 (Change `ChildExt::kill_process_group` to be `&self`) - rust-lang/rust#166405 (Check for errors before encoding metadata) - rust-lang/rust#166412 (std: Fix locking test on GNU/Hurd) - rust-lang/rust#166413 (std: Fix symlink chmod test on GNU/Hurd) - rust-lang/rust#166421 (core: Stabilize `float_bits_const`)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #166278
pr #165524 moved the
has_errors_or_delayed_bugscheck from before metadata encoding to after it. Then, for a lib crate, metadata encoding runsexported_generic_symbols, which runs mono item collection on bodies that failed const eval, like[(); loop {}], and it ICEs becausementioned_itemswas never set.I moved the check back into
finish_and_emit_metadata, after the test hook and before encoding, so the order is the same as before #165524. Now we only get the normal error, no panic.Added a UI test.
cc @blyxyas @bjorn3