4 matches across 1 files for TODO lang:Rust path:compiler/rustc_codegen_cranelift/build_system/todo.rs
snippet_mode: auto · sorted by relevance
compiler/rustc_codegen_cranelift/build_system/todo.rs RUST 4 matches view file →
38 let mut error_count = 0;
39 // Avoid embedding the task marker in source so greps only find real occurrences.
40 let todo_marker = "todo".to_ascii_uppercase();
41
42 for file in files {
· · ·
50 for (i, line) in contents.split('\n').enumerate() {
51 let trimmed = line.trim();
52 if trimmed.contains(&todo_marker) {
53 eprintln!(
54 "{}:{}: {} is used for tasks that should be done before merging a PR; if you want to leave a message in the codebase use FIXME",
· · ·
55 file.display(),
56 i + 1,
57 todo_marker
58 );
59 error_count += 1;
· · ·
66 }
67
68 eprintln!("found {} {}(s)", error_count, todo_marker);
69 process::exit(1);
70}
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.