about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-27 03:36:12 +0000
committerbors <bors@rust-lang.org>2024-02-27 03:36:12 +0000
commitfb060815b305e5d58ab28e41e6aff337bb3c0eba (patch)
treeb06409bf78fb8a3a193255d6ab9c185a4196a45d /compiler/rustc_parse/src/parser/expr.rs
parentd12b53e481102be753d8a6515ef43ede74b13b66 (diff)
parentfd85db3636fdfe949fede6026955a2a1b3bfa80c (diff)
downloadrust-fb060815b305e5d58ab28e41e6aff337bb3c0eba.tar.gz
rust-fb060815b305e5d58ab28e41e6aff337bb3c0eba.zip
Auto merge of #11136 - y21:enhance_read_line_without_trim, r=dswij
[`read_line_without_trim`]: detect string literal comparison and `.ends_with()` calls

This lint now also realizes that a comparison like `s == "foo"` and calls such as `s.ends_with("foo")` will fail if `s` was initialized by a call to `Stdin::read_line` (because of the trailing newline).

changelog: [`read_line_without_trim`]: detect string literal comparison and `.ends_with()` calls

r? `@giraffate` assigning you because you reviewed #10970 that added this lint, so this is kinda a followup PR ^^
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions