We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6672adb commit 4a976bfCopy full SHA for 4a976bf
tests/build-std/main.rs
@@ -418,3 +418,30 @@ fn test_proc_macro() {
418
"#]])
419
.run();
420
}
421
+
422
+#[cargo_test(build_std_real)]
423
+fn test_panic_abort() {
424
+ // See rust-lang/cargo#14935
425
+ let p = project()
426
+ .file(
427
+ "Cargo.toml",
428
+ r#"
429
+ [package]
430
+ name = "foo"
431
+ edition = "2021"
432
+ "#,
433
+ )
434
+ .file("src/lib.rs", "#![no_std]")
435
+ .build();
436
437
+ p.cargo("check")
438
+ .build_std_arg("std,panic_abort")
439
+ .env("RUSTFLAGS", "-C panic=abort")
440
+ .arg("-Zbuild-std-features=panic_immediate_abort")
441
+ .with_status(101)
442
+ .with_stderr_data(str![[r#"
443
+[ERROR] package ID specification `panic_unwind` did not match any packages
444
445
+"#]])
446
+ .run();
447
+}
0 commit comments