diff options
| author | bors <bors@rust-lang.org> | 2024-02-27 03:36:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-27 03:36:12 +0000 |
| commit | fb060815b305e5d58ab28e41e6aff337bb3c0eba (patch) | |
| tree | b06409bf78fb8a3a193255d6ab9c185a4196a45d /compiler/rustc_parse/src/parser/expr.rs | |
| parent | d12b53e481102be753d8a6515ef43ede74b13b66 (diff) | |
| parent | fd85db3636fdfe949fede6026955a2a1b3bfa80c (diff) | |
| download | rust-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
