Skip to content

Commit 779b3c1

Browse files
committed
update test proc_macro_ws
This non-regression test didn't pass as-is because of the new debuginfo build deps optimization. This restores the original intent of the test.
1 parent 4b8081e commit 779b3c1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/testsuite/features2.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,13 +1050,21 @@ fn decouple_proc_macro() {
10501050
#[cargo_test]
10511051
fn proc_macro_ws() {
10521052
// Checks for bug with proc-macro in a workspace with dependency (shouldn't panic).
1053+
//
1054+
// Note, debuginfo is explicitly requested here to preserve the intent of this non-regression
1055+
// test: that will disable the debuginfo build dependencies optimization. Otherwise, it would
1056+
// initially trigger when the crates are built independently, but rebuild them with debuginfo
1057+
// when it sees the shared build/runtime dependency when checking the complete workspace.
10531058
let p = project()
10541059
.file(
10551060
"Cargo.toml",
10561061
r#"
10571062
[workspace]
10581063
members = ["foo", "pm"]
10591064
resolver = "2"
1065+
1066+
[profile.dev.build-override]
1067+
debug = true
10601068
"#,
10611069
)
10621070
.file(

0 commit comments

Comments
 (0)