-
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
the order of tcx.implementations_of_trait
is unstable
#120371
Labels
A-metadata
Area: Crate metadata
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Jan 26, 2024
cc #120012 |
lcnr
changed the title
the order
the order of Jan 26, 2024
implementations_of_trait
is unstabletcx.implementations_of_trait
is unstable
fmease
added
A-metadata
Area: Crate metadata
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Jan 26, 2024
discussed in https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/codegen-units.20impacts.20order.20of.20impls root cause is rust/compiler/rustc_metadata/src/rmeta/encoder.rs Lines 2005 to 2024 in 69db514
|
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jul 21, 2024
Remove unnecessary impl sorting in queries and metadata Removes unnecessary impl sorting because queries already return their keys in HIR definition order: rust-lang#120371 (comment) r? `@cjgillot` or `@lcnr` -- unless I totally misunderstood what was being asked for here? 😆 fixes rust-lang#120371
github-actions bot
pushed a commit
to rust-lang/miri
that referenced
this issue
Jul 24, 2024
Remove unnecessary impl sorting in queries and metadata Removes unnecessary impl sorting because queries already return their keys in HIR definition order: rust-lang/rust#120371 (comment) r? `@cjgillot` or `@lcnr` -- unless I totally misunderstood what was being asked for here? 😆 fixes #120371
flip1995
pushed a commit
to flip1995/rust-clippy
that referenced
this issue
Jul 25, 2024
Remove unnecessary impl sorting in queries and metadata Removes unnecessary impl sorting because queries already return their keys in HIR definition order: rust-lang/rust#120371 (comment) r? `@cjgillot` or `@lcnr` -- unless I totally misunderstood what was being asked for here? 😆 fixes #120371
lnicola
pushed a commit
to lnicola/rust-analyzer
that referenced
this issue
Jul 28, 2024
Remove unnecessary impl sorting in queries and metadata Removes unnecessary impl sorting because queries already return their keys in HIR definition order: rust-lang/rust#120371 (comment) r? `@cjgillot` or `@lcnr` -- unless I totally misunderstood what was being asked for here? 😆 fixes #120371
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-metadata
Area: Crate metadata
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
given the following extern crate
dep
:and the following root crate:
The order in
trait_impls_of
depends on crate metadata ofdep
. The rest is only necessary to reproduce this issue.with the following cargo.toml file
the output of
cargo c
is unstable:with 1 codegen unit it's
while with 2 it is
The text was updated successfully, but these errors were encountered: