-
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
Compiler panics after restructuring of project: attempted .def_id() on invalid def: PrimTy(Float(f64)) #60976
Comments
I have a PR that will fix the underlying problem, but we need to come up with a reproduction case to avoid regressions in the future. |
Removing nomination since a fix is already approved |
Do not fail on child without DefId Addresses rust-lang#60976, leaving open to come up with a repro case.
Do not fail on child without DefId Addresses rust-lang#60976, leaving open to come up with a repro case.
Do not fail on child without DefId Addresses rust-lang#60976, leaving open to come up with a repro case.
Do not fail on child without DefId Addresses rust-lang#60976, leaving open to come up with a repro case.
Thank you so much for the super-fast response! However, I am not at all familiar with rust's compiler code, so if you could tell which part of the code the compiler trips upon, I can try isolating that part of the code to make a smaller reproducible example. |
Reduced it down to two files: src/main.rs: (replace use \enter_crate_name_here\;
fn main() {} src/lib.rs: pub use u32;
|
is there a problem of adding the test in two files (with |
@kingslef No, that's totally fine. Go for it! |
The test fails on 1.36.0 but passes on master.
…akis add a test for rust-lang#60976 The test fails on 1.36.0 but passes on master. Huge thanks for @hellow554 actually digging out the minimized version of the repro. Fixes rust-lang#60976.
Hello,
I was working on my toy project here:
https://github.com/smukherjee2016/sayo_pbr_rs
The project was compiling and running fine at this commit:
smukherjee2016/sayo_pbr_rs@e8f071c
However, I decided I wanted to move functionality out of
src/lib.rs
and intosrc/scene/mod.rs
, so I moved all of it except themod
declarations, and then tried to compile. This led to the compiler panic.The repro commit for this:
smukherjee2016/sayo_pbr_rs@ecf225f
I am using CLion, and the command I run is simply
cargo run
.I am pretty new to Rust so it might just be me doing something really wrong, but it'd be great if someone could look into this and advise. Thank you!
With
stable-msvc
:With
stable-gnu
:EDIT: Updated with last working commit.
EDIT2: Posted crash message with --verbose flag and clarified IDE.
EDIT3: Added MSVC toolchain error.
The text was updated successfully, but these errors were encountered: