7 matches across 1 files for TODO path:compiler/rustc_const_eval/src/interpret/validity.rs lang:Rust
snippet_mode: grep · sorted by relevance
compiler/rustc_const_eval/src/interpret/validity.rs RUST 7 matches · showing 5 view file →
290pub struct RefTracking<T, PATH = ()> {
291 seen: FxHashSet<T>,
292 todo: Vec<(T, PATH)>,
293}
294
· · ·
295impl<T: Clone + Eq + Hash + std::fmt::Debug, PATH> RefTracking<T, PATH> {
296 pub fn empty() -> Self {
297 RefTracking { seen: FxHashSet::default(), todo: vec![] }
298 }
299 pub fn next(&mut self) -> Option<(T, PATH)> {
· · ·
300 self.todo.pop()
301 }
302
· · ·
306 let path = path();
307 // Remember to come back to this later.
308 self.todo.push((val, path));
309 }
310 }
· · ·
314 pub fn new(val: T, ty: Ty<'tcx>) -> Self {
315 let mut ref_tracking_for_consts =
316 RefTracking { seen: FxHashSet::default(), todo: vec![(val.clone(), Path::new(ty))] };
317 ref_tracking_for_consts.seen.insert(val);
318 ref_tracking_for_consts
+ 2 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.