Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 247e44e

Browse files
committedDec 31, 2022
Auto merge of #106324 - compiler-errors:rollup-2m9njin, r=compiler-errors
Rollup of 9 pull requests Successful merges: - #105903 (Unify id-based thread parking implementations) - #106232 (CFI: Monomorphize transparent ADTs before typeid) - #106248 (Revert "Implement allow-by-default `multiple_supertrait_upcastable` lint") - #106286 (Make tidy errors red) - #106295 (Extend scraped examples layout GUI test for position of buttons) - #106305 ( bootstrap: Get rid of tail_args in stream_cargo) - #106310 (Dont use `--merge-base` during bootstrap formatting subcommand) - #106314 (Fix panic on `x build --help`) - #106317 (Only deduplicate stack traces for good path bugs) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents 5570cda + d798e22 commit 247e44e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+428
-578
lines changed
 

‎Cargo.lock

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2675,9 +2675,9 @@ dependencies = [
26752675

26762676
[[package]]
26772677
name = "owo-colors"
2678-
version = "3.4.0"
2678+
version = "3.5.0"
26792679
source = "registry+https://github.com/rust-lang/crates.io-index"
2680-
checksum = "decf7381921fea4dcb2549c5667eda59b3ec297ab7e2b5fc33eac69d2e7da87b"
2680+
checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f"
26812681

26822682
[[package]]
26832683
name = "packed_simd_2"
@@ -5203,9 +5203,9 @@ dependencies = [
52035203

52045204
[[package]]
52055205
name = "termcolor"
5206-
version = "1.1.2"
5206+
version = "1.1.3"
52075207
source = "registry+https://github.com/rust-lang/crates.io-index"
5208-
checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4"
5208+
checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"
52095209
dependencies = [
52105210
"winapi-util",
52115211
]
@@ -5309,6 +5309,7 @@ dependencies = [
53095309
"lazy_static",
53105310
"miropt-test-tools",
53115311
"regex",
5312+
"termcolor",
53125313
"walkdir",
53135314
]
53145315

‎compiler/rustc_driver/src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,8 +1199,8 @@ static DEFAULT_HOOK: LazyLock<Box<dyn Fn(&panic::PanicInfo<'_>) + Sync + Send +
11991199
};
12001200

12011201
// Invoke the default handler, which prints the actual panic message and optionally a backtrace
1202-
// Don't do this for `ExplicitBug`, which has an unhelpful message and backtrace.
1203-
if !info.payload().is::<rustc_errors::ExplicitBug>() {
1202+
// Don't do this for `GoodPathBug`, which already emits its own more useful backtrace.
1203+
if !info.payload().is::<rustc_errors::GoodPathBug>() {
12041204
(*DEFAULT_HOOK)(info);
12051205

12061206
// Separate the output with an empty line
@@ -1237,7 +1237,9 @@ pub fn report_ice(info: &panic::PanicInfo<'_>, bug_report_url: &str) {
12371237

12381238
// a .span_bug or .bug call has already printed what
12391239
// it wants to print.
1240-
if !info.payload().is::<rustc_errors::ExplicitBug>() {
1240+
if !info.payload().is::<rustc_errors::ExplicitBug>()
1241+
&& !info.payload().is::<rustc_errors::GoodPathBug>()
1242+
{
12411243
let mut d = rustc_errors::Diagnostic::new(rustc_errors::Level::Bug, "unexpected panic");
12421244
handler.emit_diagnostic(&mut d);
12431245
}

0 commit comments

Comments
 (0)
Please sign in to comment.