-
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
Unrelated changes make multiple-definitions test fail spuriously #87084
Comments
At this point I think we may want to revert the addition of the test until this issue can be debugged, to avoid spuriously breaking other PRs. |
Remove `multiple-definitions` test r? `@joshtriplett` Temporary solution to rust-lang#87084.
@rustbot claim |
Could the use of |
I don't think so, no. The problem is that the error message only occurs when we have multiple Sorting the |
…nitions, r=petrochenkov Remove nondeterminism in multiple-definitions test Compare all fields in `DllImport` when sorting to avoid nondeterminism in the error for multiple inconsistent definitions of an extern function. Restore the multiple-definitions test. Resolves rust-lang#87084.
…nitions, r=petrochenkov Remove nondeterminism in multiple-definitions test Compare all fields in `DllImport` when sorting to avoid nondeterminism in the error for multiple inconsistent definitions of an extern function. Restore the multiple-definitions test. Resolves rust-lang#87084.
The test was originally added in #86419, see the comments under that for more discussion.
#86922 and #86857 fails with this diff:
#87075 was opened, removing the
^^^
and adding indentation (I did not see that it suggested removing--> $DIR/...
). It fails with this diff:I just want to say that I don't think there was some nondeterministic code causing the span to be different (at least in the file that emitted the diagnostic), as shown on these lines, where they get sorted, deterministically:
rust/compiler/rustc_codegen_ssa/src/back/link.rs
Lines 483 to 487 in a867dd4
@rustbot label A-spurious C-bug T-compiler
The text was updated successfully, but these errors were encountered: