diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2020-01-17 17:28:15 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-17 17:28:15 -0800 |
| commit | 7f6fdef0e92a8865728f130fdbeb6d0a1dbe7307 (patch) | |
| tree | 7674f06fb3f2d5dffaf3d71ff42ba92c1d6ef667 /src/test | |
| parent | fca3264406c5c8d08c061f6f68ac69c84b0a8a75 (diff) | |
| parent | 03240e1359f68bdddcdb236f3a89f9907b907449 (diff) | |
| download | rust-7f6fdef0e92a8865728f130fdbeb6d0a1dbe7307.tar.gz rust-7f6fdef0e92a8865728f130fdbeb6d0a1dbe7307.zip | |
Rollup merge of #68256 - estebank:bad-sugg-span, r=petrochenkov
Do not ICE on malformed suggestion spans Under the assumption that suggestions are by their very nature always "best effort", it is ok if we don't display them instead of having an ICE. The underlying issue of the malformed span being _created_ is left unaddressed. Fix #67567. r? @petrochenkov
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/consts/miri_unleashed/mutable_const2.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/consts/miri_unleashed/mutable_const2.stderr b/src/test/ui/consts/miri_unleashed/mutable_const2.stderr index 655c31763ef..0d7fb845a40 100644 --- a/src/test/ui/consts/miri_unleashed/mutable_const2.stderr +++ b/src/test/ui/consts/miri_unleashed/mutable_const2.stderr @@ -10,7 +10,7 @@ error: internal compiler error: mutable allocation in constant LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', src/librustc_errors/lib.rs:346:17 +thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', src/librustc_errors/lib.rs:356:17 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace error: internal compiler error: unexpected panic |
