Skip to content

Commit ba90718

Browse files
committed
found the stack overflow culprit
1 parent 93ac5df commit ba90718

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/ty/maps.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ macro_rules! define_maps {
346346
}
347347

348348
// FIXME(eddyb) Get more valid Span's on queries.
349-
if span == DUMMY_SP {
350-
span = key.default_span(tcx);
349+
if span == DUMMY_SP && stringify!($name) != "def_span" {
350+
span = key.default_span(tcx)
351351
}
352352

353353
let _task = tcx.dep_graph.in_task(Self::to_dep_node(&key));

0 commit comments

Comments
 (0)