mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
found the stack overflow culprit
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user