Skip to content

tcx.crate_extern_paths(crate_num(&local_crate)) ICE #98

@zjp-CN

Description

@zjp-CN
let local_crate = stable_mir::local_crate();
tcx.crate_extern_paths(stable_mir::rustc_internal::crate_num(&local_crate)); // ICE
error: internal compiler error: compiler/rustc_middle/src/query/plumbing.rs:706:5: 
`tcx.crate_extern_paths(LocalCrate)` is not supported for this key;
  hint: Queries can be either made to the local crate, or the external crate.
This error means you tried to use it for one that's not supported.
  If that's not the case, crate_extern_paths was likely never assigned to a provider function.


thread 'rustc' panicked at compiler/rustc_middle/src/query/plumbing.rs:706:5:
Box<dyn Any>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions