Skip to content

error: internal compiler error: src/librustc/hir/def.rs:265: attempted .def_id() on invalid def: NonMacroAttr(Builtin) #58519

Closed
@gabreal

Description

@gabreal

I get this error when compiling https://github.com/paritytech/substrate docs via cargo doc --release --verbose (50bfe375). In fact we're using rustc 1.32.0 (9fda7c223 2019-01-16) for a while now on this repo, but recent code changes caused this bug to appear. See: https://gitlab.parity.io/parity/substrate/-/jobs/123140

This issue seems to be related, but its fix didn't help here.

% rustc --version --verbose
rustc 1.32.0 (9fda7c223 2019-01-16)
binary: rustc
commit-hash: 9fda7c2237db910e41d6a712e9a2139b352e558b
commit-date: 2019-01-16
host: x86_64-unknown-linux-gnu
release: 1.32.0
LLVM version: 8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    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.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