found the stack overflow culprit

This commit is contained in:
achernyak
2017-04-28 22:42:05 -05:00
parent 93ac5dff2a
commit ba90718bb4
+2 -2
View File
@@ -346,8 +346,8 @@ fn try_get_with<F, R>(tcx: TyCtxt<'a, $tcx, 'lcx>,
}
// FIXME(eddyb) Get more valid Span's on queries.
if span == DUMMY_SP {
span = key.default_span(tcx);
if span == DUMMY_SP && stringify!($name) != "def_span" {
span = key.default_span(tcx)
}
let _task = tcx.dep_graph.in_task(Self::to_dep_node(&key));