diff options
| author | bors <bors@rust-lang.org> | 2024-09-28 14:02:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-28 14:02:09 +0000 |
| commit | e6eb45143cc4dd236dacd6fd8dc74eb1ee6852b2 (patch) | |
| tree | bdb8fe0a06cc7572501f03ba439cdb263510c554 /compiler/rustc_pattern_analysis | |
| parent | 612796c42077605fdd3c6f7dda05745d8f4dc4d8 (diff) | |
| parent | 2fca8e5ae7b6cbd90ad40e8e0a1142e2e36e6e51 (diff) | |
| download | rust-e6eb45143cc4dd236dacd6fd8dc74eb1ee6852b2.tar.gz rust-e6eb45143cc4dd236dacd6fd8dc74eb1ee6852b2.zip | |
Auto merge of #130979 - matthiaskrgr:rollup-u7ylca5, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #128778 (atomics: allow atomic and non-atomic reads to race) - #130918 (simplify LLVM submodule handling) - #130960 (Only add an automatic SONAME for Rust dylibs) - #130973 (compiletest: rename "runtest/crash.rs" to "runtest/crashes.rs" to be in line with the test directory) - #130976 (remove couple redundant clones) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_pattern_analysis')
| -rw-r--r-- | compiler/rustc_pattern_analysis/src/rustc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_pattern_analysis/src/rustc.rs b/compiler/rustc_pattern_analysis/src/rustc.rs index 72737fb98cb..70a9319d666 100644 --- a/compiler/rustc_pattern_analysis/src/rustc.rs +++ b/compiler/rustc_pattern_analysis/src/rustc.rs @@ -1027,7 +1027,7 @@ impl<'p, 'tcx: 'p> PatCx for RustcPatCtxt<'p, 'tcx> { // Point at this range. first_range: thir_pat.span, // That's the gap that isn't covered. - max: gap_as_pat.to_string(), + max: gap_as_pat, // Suggest `lo..=max` instead. suggestion: suggested_range, }, |
