Closed
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.
Metadata
Metadata
Assignees
Labels
Area: Incremental compilationCategory: This is a bug.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Helping to "clean up" bugs with minimal examples and bisectionsHigh priorityRelevant to the compiler team, which will review and decide on the PR/issue.Performance or correctness regression from stable to beta.