SourceFile
in new context' · Issue #70924 · rust-lang/rust (original) (raw)
'rustc' panicked at 'failed to lookup
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
Hi.
I did cargo build and suddenly this goes to my console:
error: cannot find attribute `get` in this scope
--> src/webserver.rs:15:3
|
15 | #[get("/<name>/<age>")]
| ^^^
warning: unused import: `rocket`
--> src/webserver.rs:4:5
|
4 | use rocket;
| ^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
thread 'rustc' panicked at 'failed to lookup `SourceFile` in new context', src/librustc_middle/ty/query/on_disk_cache.rs:456:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.44.0-nightly (6dee5f112 2020-04-06) running on x86_64-unknown-linux-gnu
note: compiler flags: -C debuginfo=2 -C incremental --crate-type bin
note: some of the compiler flags provided by cargo are hidden
error: aborting due to previous error
error: could not compile `hard`.
To learn more, run the command again with --verbose.
I gave it another try and this is the backtrace:
https://pastebin.com/JLQy9Ear
I am using today nightly. It was compiling fine before... anyway as I believe that the problem is with panic - I am reporting this bug.