12 matches across 1 files for TODO lang:Rust path:src/tools/clippy/clippy_utils/src/usage.rs
snippet_mode: grep · sorted by relevance
src/tools/clippy/clippy_utils/src/usage.rs RUST 12 matches · showing 5 view file →
143}
144
145/// Checks if the given expression is a macro call to `todo!()` or `unimplemented!()`.
146pub fn is_todo_unimplemented_macro(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
147 root_macro_call_first_node(cx, expr)
· · ·
146pub fn is_todo_unimplemented_macro(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
147 root_macro_call_first_node(cx, expr)
148 .and_then(|macro_call| cx.tcx.get_diagnostic_name(macro_call.def_id))
· · ·
149 .is_some_and(|macro_name| matches!(macro_name, sym::todo_macro | sym::unimplemented_macro))
150}
151
· · ·
152/// Checks if the given expression is a stub, i.e., a `todo!()` or `unimplemented!()` expression,
153/// or a block whose last expression is a `todo!()` or `unimplemented!()`.
154pub fn is_todo_unimplemented_stub(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
· · ·
153/// or a block whose last expression is a `todo!()` or `unimplemented!()`.
154pub fn is_todo_unimplemented_stub(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
155 if let ExprKind::Block(block, _) = expr.kind {
+ 7 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.