-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-spuriousArea: Spurious failures in builds (spuriously == for no apparent reason)Area: Spurious failures in builds (spuriously == for no apparent reason)C-bugCategory: This is a bug.Category: This is a bug.F-raw_dylib`#![feature(raw_dylib)]``#![feature(raw_dylib)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
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
imports.sort_unstable_by_key(|x: &DllImport| x.name.as_str()); | |
(lib_name, imports) | |
}) | |
.collect::<Vec<_>>(); | |
result.sort_unstable_by(|a: &(String, Vec<DllImport>), b: &(String, Vec<DllImport>)| { |
@rustbot label A-spurious C-bug T-compiler
Metadata
Metadata
Assignees
Labels
A-spuriousArea: Spurious failures in builds (spuriously == for no apparent reason)Area: Spurious failures in builds (spuriously == for no apparent reason)C-bugCategory: This is a bug.Category: This is a bug.F-raw_dylib`#![feature(raw_dylib)]``#![feature(raw_dylib)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.