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 c2fa99d commit dfe187dCopy full SHA for dfe187d
src/librustc/ty/query/job.rs
@@ -295,7 +295,7 @@ fn cycle_check<'tcx>(query: Lrc<QueryJob<'tcx>>,
295
// We detected a query cycle, fix up the initial span and return Some
296
297
// Remove previous stack entries
298
- stack.splice(0..p, iter::empty());
+ stack.drain(0..p);
299
// Replace the span for the first query with the cycle cause
300
stack[0].0 = span;
301
Some(None)
0 commit comments