-
Notifications
You must be signed in to change notification settings - Fork 14k
Fix ICE caused by invalid spans for shrink_file #148735
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| reuse a as b { | ||
| //~^ ERROR cannot find function `a` in this scope | ||
| //~| ERROR functions delegation is not yet fully implemented | ||
| dbg!(b); | ||
| //~^ ERROR missing lifetime specifier | ||
| } | ||
|
|
||
| fn main() {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| WARN rustc_errors::emitter Invalid span $SRC_DIR/std/src/macros.rs:LL:COL (#4), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "$SRC_DIR/std/src/macros.rs" }) } | ||
| WARN rustc_errors::emitter Invalid span $SRC_DIR/std/src/macros.rs:LL:COL (#4), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "$SRC_DIR/std/src/macros.rs" }) } | ||
| WARN rustc_errors::emitter Invalid span $SRC_DIR/std/src/macros.rs:LL:COL (#4), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "$SRC_DIR/std/src/macros.rs" }) } | ||
|
||
| error[E0106]: missing lifetime specifier | ||
| --> $DIR/ice-line-bounds-issue-148732.rs:4:5 | ||
| | | ||
| LL | dbg!(b); | ||
| | ^^^^^^^ expected named lifetime parameter | ||
| | | ||
| = note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
| | | ||
|
|
||
| error[E0425]: cannot find function `a` in this scope | ||
| --> $DIR/ice-line-bounds-issue-148732.rs:1:7 | ||
| | | ||
| LL | reuse a as b { | ||
| | ^ not found in this scope | ||
|
|
||
| error[E0658]: functions delegation is not yet fully implemented | ||
| --> $DIR/ice-line-bounds-issue-148732.rs:1:1 | ||
| | | ||
| LL | / reuse a as b { | ||
| LL | | | ||
| LL | | | ||
| LL | | dbg!(b); | ||
| LL | | | ||
| LL | | } | ||
| | |_^ | ||
| | | ||
| = note: see issue #118212 <https://github.com/rust-lang/rust/issues/118212> for more information | ||
| = help: add `#![feature(fn_delegation)]` to the crate attributes to enable | ||
| = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
|
||
| error: aborting due to 3 previous errors | ||
|
|
||
| Some errors have detailed explanations: E0106, E0425, E0658. | ||
| For more information about an error, try `rustc --explain E0106`. | ||
Uh oh!
There was an error while loading. Please reload this page.