-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustc --test should not check linking when using --emit=metadata or -Z no-trans #39948
Comments
|
Right; |
Aha, great to see this stabilising. My understanding from #38666 is that We'll certainly move to Note that the same problem exists with
|
As far as I can tell this works today, so I'm going to close.
|
@Mark-Simulacrum I don't think your test is equivalent. The example from the first comment still fails on current Rust. Could you please reopen? |
The intended way to do this with cargo is to use Additionally, once #65710 lands, there is a new flag |
Suppose I have a library configured with
panic = "abort"
:I'm unable to build with with
--test
:As discussed in rust-lang/cargo#3166 (comment) this is because the test harness needs unwinding on panic.
However, I get the same error with
-Z no-trans
:This causes problems in editor integration like flycheck/flycheck-rust#47 . We want to pass
--test
as otherwise we don't get syntax checking on test files. However, we get the above error for projects with abort-on-panic.Could we teach
--test
to ignore the runtime when we pass-Z no-trans
?The text was updated successfully, but these errors were encountered: