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 2e26bfb commit e3d7ee8Copy full SHA for e3d7ee8
tests/build-std/main.rs
@@ -402,3 +402,30 @@ fn test_proc_macro() {
402
"#]])
403
.run();
404
}
405
+
406
+#[cargo_test(build_std_real)]
407
+fn test_panic_abort() {
408
+ // See rust-lang/cargo#14935
409
+ let p = project()
410
+ .file(
411
+ "Cargo.toml",
412
+ r#"
413
+ [package]
414
+ name = "foo"
415
+ edition = "2021"
416
+ "#,
417
+ )
418
+ .file("src/lib.rs", "#![no_std]")
419
+ .build();
420
421
+ p.cargo("check")
422
+ .build_std_arg("std,panic_abort")
423
+ .env("RUSTFLAGS", "-C panic=abort")
424
+ .arg("-Zbuild-std-features=panic_immediate_abort")
425
+ .with_status(101)
426
+ .with_stderr_data(str![[r#"
427
+[ERROR] package ID specification `panic_unwind` did not match any packages
428
429
+"#]])
430
+ .run();
431
+}
0 commit comments