-
Notifications
You must be signed in to change notification settings - Fork 13.3k
the order of tcx.implementations_of_trait
is unstable
#120371
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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
cc #120012 |
implementations_of_trait
is unstabletcx.implementations_of_trait
is unstable
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
# for free
to join this conversation on GitHub.
Already have an account?
# 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: