diff --git a/src/librustc/hir/map/collector.rs b/src/librustc/hir/map/collector.rs
index 4fbcd83adb55..2917fd7457ac 100644
--- a/src/librustc/hir/map/collector.rs
+++ b/src/librustc/hir/map/collector.rs
@@ -28,6 +28,10 @@ use rustc_data_structures::stable_hasher::{HashStable, StableHasher, StableHashe
pub(super) struct NodeCollector<'a, 'hir> {
/// The crate
krate: &'hir Crate,
+
+ /// Source map
+ source_map: &'a SourceMap,
+
/// The node map
map: Vec