diff options
| author | bors <bors@rust-lang.org> | 2023-08-30 06:16:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-30 06:16:17 +0000 |
| commit | 7659abc63d33223fa366c8781c81698e28a21e6c (patch) | |
| tree | 466c82b0bd0bf04f17096ce9f495ae6ac4a3515d /compiler/rustc_mir_transform/src | |
| parent | 82c2eb48ee275638b437fa2a044e9d44de0ca0c6 (diff) | |
| parent | ea2347843c24a59367952b0463505539f1b69a93 (diff) | |
| download | rust-7659abc63d33223fa366c8781c81698e28a21e6c.tar.gz rust-7659abc63d33223fa366c8781c81698e28a21e6c.zip | |
Auto merge of #115370 - matthiaskrgr:rollup-l0e1zuj, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #113565 (Make SIGSEGV handler emit nicer backtraces) - #114704 (parser: not insert dummy field in struct) - #115272 (miri/diagnostics: don't forget to print_backtrace when ICEing on unexpected errors) - #115313 (Make `get_return_block()` return `Some` only for HIR nodes in body) - #115347 (suggest removing `impl` in generic trait bound position) - #115355 (new solver: handle edge case of a recursion limit of 0) - #115363 (Don't suggest adding parentheses to call an inaccessible method.) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_mir_transform/src')
| -rw-r--r-- | compiler/rustc_mir_transform/src/const_prop_lint.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/const_prop_lint.rs b/compiler/rustc_mir_transform/src/const_prop_lint.rs index da8913d604b..755b3985791 100644 --- a/compiler/rustc_mir_transform/src/const_prop_lint.rs +++ b/compiler/rustc_mir_transform/src/const_prop_lint.rs @@ -273,7 +273,8 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> { // dedicated error variants should be introduced instead. assert!( !error.kind().formatted_string(), - "const-prop encountered formatting error: {error:?}", + "const-prop encountered formatting error: {}", + self.ecx.format_error(error), ); None } |
