Skip to content

internal compiler error: expected NodeId to be lowered already for res Local... #69401

Description

@dwrensha

I'm seeing an internal compiler error on the following input (found by fuzz-rustc):

struct Inv<'a> {
    x: &'a u8
}
pub trait Foo {
    fn no_bound(b: Inv<(b)>);
}
$ rustc main.rs
error[E0573]: expected type, found local variable `b`
 --> main.rs:5:25
  |
5 |     fn no_bound(b: Inv<(b)>);
  |                         ^ not a type

thread 'rustc' panicked at 'expected `NodeId` to be lowered already for res Local(
    NodeId(21),
)', src/librustc_ast_lowering/lib.rs:662: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.43.0-nightly (5d04ce67f 2020-02-13) running on x86_64-unknown-linux-gnu

error: aborting due to previous error

For more information about this error, try `rustc --explain E0573`.

Activity

  1. dwrensha commented on Feb 23, 2020

    @dwrensha
    ContributorAuthor

    Report from cargo-bisect-rustc:

    searched nightlies: from nightly-2020-01-01 to nightly-2020-02-16
    regressed nightly: nightly-2020-02-07
    searched commits: from 58b8343 to 442ae7f
    regressed commit: 442ae7f

  2. added
    A-HIRArea: The high-level intermediate representation (HIR)
    C-bugCategory: This is a bug.
    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Feb 23, 2020
  3. dwrensha commented on Feb 23, 2020

    @dwrensha
    ContributorAuthor

    It looks like #68788 caused the regression. (The error happens at 9a4eac3 but not at c9290dc.)
    cc @Centril

  4. dwrensha commented on Feb 25, 2020

    @dwrensha
    ContributorAuthor

    The specific commit where the error starts happening is b2c6eeb.

  5. pnkfelix commented on Feb 27, 2020

    @pnkfelix
    Contributor

    triage: P-high. Removing nomination. Added regression stable-to-nightly tag.

  6. self-assigned this
    on Feb 28, 2020
  7. Centril commented on Feb 28, 2020

    @Centril
    Contributor

    Fixed by #69539.

  8. added a commit that references this issue on Feb 28, 2020
  9. added a commit that references this issue on Feb 28, 2020
  10. added 2 commits that reference this issue on Sep 24, 2022
    6aa4656
    11b4510
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-HIRArea: The high-level intermediate representation (HIR)C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.glacierICE tracked in rust-lang/glacier.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions