We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f182c4a commit a309a52Copy full SHA for a309a52
src/librustc_metadata/creader.rs
@@ -558,9 +558,10 @@ impl<'a> CrateLoader<'a> {
558
dep_kind: DepKind,
559
) -> CrateNumMap {
560
debug!("resolving deps of external crate");
561
- if crate_root.is_proc_macro_crate() {
562
- return CrateNumMap::new();
563
- }
+
+ // Note that we need to resolve deps for proc-macro crates (just like normal crates)
+ // since we may need to decode `Span`s that reference the `CrateNums`
564
+ // of transitive dependencies
565
566
// The map from crate numbers in the crate we're resolving to local crate numbers.
567
// We map 0 and all other holes in the map to our parent crate. The "additional"
0 commit comments