impl Exporter for CsvExporter {
fn export(&self, rows: &[Row]) -> Result<Vec<u8>, ExportError> {
todo!()
}
}Deterministic line match: flags `todo!(` and `unimplemented!(` on any line that is not a `//` comment.
A `todo!()` or `unimplemented!()` macro in Rust code. It type-checks as any return type and panics when the path runs.
Each example shows the exact code shape the rule is looking for, then the smallest version that keeps the intent without hiding risk or adding noise.
impl Exporter for CsvExporter {
fn export(&self, rows: &[Row]) -> Result<Vec<u8>, ExportError> {
todo!()
}
}Deterministic line match: flags `todo!(` and `unimplemented!(` on any line that is not a `//` comment.
impl Exporter for CsvExporter {
fn export(&self, rows: &[Row]) -> Result<Vec<u8>, ExportError> {
let mut writer = csv::Writer::from_writer(Vec::new());
for row in rows {
writer.serialize(row)?;
}
writer.into_inner().map_err(ExportError::from)
}
}Implement the path, or return an error the caller can handle. If the work is genuinely deferred, track it in a ticket rather than a runtime panic.
Agents use the macros to make a signature compile while they work elsewhere, and the placeholder ships.
ai-slop/rust-todo-stub
ai-slop
Deterministic line match: flags `todo!(` and `unimplemented!(` on any line that is not a `//` comment.
Commented-out lines, `examples/` and `benches/` paths, and `unreachable!()` are not flagged.
Shipped in aislop v0.8.0 among the Rust detectors, described in the release notes as unimplemented!() in library code.