diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-10 11:08:06 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-15 09:04:31 +1100 |
| commit | 086d17b7cb77850ce9bc549b29082b6938a6c0d4 (patch) | |
| tree | 4ba9fbf02451535653ea0bd151c34f5171f2e3ee /compiler/rustc_pattern_analysis/src | |
| parent | 4efddb141a37577c6fc6a9a39248cc86b736750b (diff) | |
| download | rust-086d17b7cb77850ce9bc549b29082b6938a6c0d4.tar.gz rust-086d17b7cb77850ce9bc549b29082b6938a6c0d4.zip | |
Refactor `try_print_trimmed_def_path`.
Inverting the condition lets us merge the two `Ok(false)` paths. I also find the inverted condition easier to read: "all the things that must be true for trimming to occur", instead of "any of the things that must be true for trimming to not occur".
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
