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 d761222 commit c522354Copy full SHA for c522354
clippy_lints/src/methods/unbuffered_bytes.rs
@@ -9,7 +9,7 @@ use rustc_span::sym;
9
/// lint to detect `.bytes()` on an unbuffered type such as a `File` or `TcpStream`
10
pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, recv: &hir::Expr<'_>) {
11
// Retrieve the DefId of the BufRead trait
12
- // Sadly BufRead does not have a diagnostic item or a lang item
+ // FIXME: add a diagnostic item for `BufRead`
13
let Some(buf_read) = get_trait_def_id(cx.tcx, &paths::BUF_READ) else {
14
return;
15
};
0 commit comments