-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Panic after changing field name on cached builds #96319
Comments
Some additional testing: the issue does occur on nightly ( |
In this zulip thread, I've bisected this to The reason it does not occur on stable 1.59 is that incremental compilation was disabled for that release. It'll still ICE with |
I've been having some difficulty minimizing this ICE (though I've been able to reproduce it locally). I'd appreciate it someone would be able to take a shot a minimizing this. |
pub struct Stmt {
pub stmt_type: StmtKind,
pub stmt_tag: Option<LintTag>,
}
pub struct LintTag;
pub enum StmtKind {
If(If),
Block(&'static str),
Return(Return),
}
pub struct If {
pub condition: Function,
}
pub struct Return {
pub value: Function,
}
pub struct Function {
pub parameters: Box<Stmt>,
}
pub fn start_late_pass(stmt_receiver: Box<Stmt>) {
spawn(async { stmt_receiver });
}
pub fn spawn<T>(_: T)
where
T: Send,
{
} Steps: |
…=compiler-errors Add regression test for rust-lang#96319
…piler-errors Rollup of 8 pull requests Successful merges: - rust-lang#96660 ([bootstrap] Give a better error when trying to run a path with no registered step) - rust-lang#96701 (update `jemallocator` example to use 2018 edition import syntax) - rust-lang#96746 (Fix an ICE on rust-lang#96738) - rust-lang#96758 (bootstrap: bsd platform flags for split debuginfo) - rust-lang#96778 (Remove closures on `expect_local` to apply `#[track_caller]`) - rust-lang#96781 (Fix an incorrect link in The Unstable Book) - rust-lang#96783 (Link to correct issue in issue-95034 known-bug) - rust-lang#96801 (Add regression test for rust-lang#96319) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
In the project linked below, changing a specific field to have a different name will ice the compiler.
cargo check
passes, butcargo run
/cargo build
will fail.If you run
cargo clean
the issue will go away. However, if you then change the field name again, the ice returns. This feels to me like an issue with incremental complication?Repo: https://github.com/imlazyeye/duck
Branch:
rust-ice
Location: In
src/parse/gml/stmt.rs
, the fieldtag
onStmt
.Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: