Closed
Description
The test was originally added in #86419, see the comments under that for more discussion.
#86922 and #86857 fails with this diff:
10 error: multiple definitions of external function `f` from library `foo.dll` have different calling conventions
- --> $DIR/multiple-definitions.rs:8:5
12 |
12 |
- LL | fn f(x: i32);
- | ^^^^^^^^^^^^^
+ LL | fn f(x: i32);
#87075 was opened, removing the ^^^
and adding indentation (I did not see that it suggested removing --> $DIR/...
). It fails with this diff:
10 error: multiple definitions of external function `f` from library `foo.dll` have different calling conventions
12 |
12 |
- LL | fn f(x: i32);
+ LL | fn f(x: i32);
14
15 error: aborting due to previous error; 1 warning emitted
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