diff options
| author | bors <bors@rust-lang.org> | 2020-11-24 00:30:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-24 00:30:25 +0000 |
| commit | cb5b87133a9b1d4489c1326a5cc3942e4345fcf9 (patch) | |
| tree | e5154ab4221f8bbc0c9bebe5ec6f61b568a35225 /compiler/rustc_mir/src/transform/coverage/debug.rs | |
| parent | f32a0cce2fd5aaf5f361192af59cf1f2afa5f0ac (diff) | |
| parent | 4652032c1472d3be3bb1a257393daea7bb2743f1 (diff) | |
| download | rust-cb5b87133a9b1d4489c1326a5cc3942e4345fcf9.tar.gz rust-cb5b87133a9b1d4489c1326a5cc3942e4345fcf9.zip | |
Auto merge of #78636 - dtolnay:puncteq, r=petrochenkov
Add PartialEq<char> for proc_macro::Punct `punct.as_char() == '░'` is pervasive when parsing anything involving punct. I think `punct == '░'` is sufficiently unambiguous that it makes sense to provide the impl. https://github.com/rust-lang/rust/blob/1899c489d4c30b2640d30b77ac04f0a548834d81/library/proc_macro/src/quote.rs#L79 https://github.com/rust-lang/rust/blob/1899c489d4c30b2640d30b77ac04f0a548834d81/library/proc_macro/src/quote.rs#L83 https://github.com/rust-lang/rust/blob/1899c489d4c30b2640d30b77ac04f0a548834d81/src/test/ui/suggestions/auxiliary/issue-61963.rs#L26 https://github.com/rust-lang/rust/blob/1899c489d4c30b2640d30b77ac04f0a548834d81/src/test/ui/proc-macro/auxiliary/three-equals.rs#L23
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
