-
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
Stop using <DefId as Ord>
in various diagnostic situations
#122820
Conversation
This comment has been minimized.
This comment has been minimized.
…d` ordering, which breaks incremental compilation.
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
LL | / foo(cell, |cell_a, cell_x| { | ||
LL | | cell_x.set(cell_a.get()); // forces 'a: 'x, implies 'a = 'static -> borrow error | ||
LL | | }) | ||
| |______- argument requires that `a` is borrowed for `'static` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shame
let _ = transpose([[0; 8]; 16]); | ||
let _ = transpose_with_const::<8,4>([[0; 8]; 16]); | ||
let _ = ident([[0; 8]; 16]); | ||
let _ = flatten([[0; 13]; 5]); | ||
let _: [[_; 5]; 13] = coagulate([0; 65]); | ||
let _ = flatten_3d([[[0; 3]; 13]; 5]); | ||
let _ = flatten_somewhat([[[0; 3]; 13]; 5]); | ||
let _ = known_size([16; 13]); | ||
let _: [u16; 5] = condense_bytes([16u8; 10]); | ||
let _ = singleton_each([16; 10]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So all of these functions are no longer representable, right?
@bors r+ |
<DefId as Ord>
in vrious diagnostic situations
<DefId as Ord>
in vrious diagnostic situations<DefId as Ord>
in various diagnostic situations
Remove `DefId`'s `Partial/Ord` impls work towards rust-lang#90317 based on rust-lang#122824 and rust-lang#122820 r? `@michaelwoerister`
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#121619 (Experimental feature postfix match) - rust-lang#122370 (Gracefully handle `AnonConst` in `diagnostic_hir_wf_check()`) - rust-lang#122537 (interpret/allocation: fix aliasing issue in interpreter and refactor getters a bit) - rust-lang#122542 (coverage: Clean up marker statements that aren't needed later) - rust-lang#122800 (Add `NonNull::<[T]>::is_empty`.) - rust-lang#122820 (Stop using `<DefId as Ord>` in various diagnostic situations) - rust-lang#122847 (Suggest `RUST_MIN_STACK` workaround on overflow) - rust-lang#122855 (Fix Itanium mangling usizes) - rust-lang#122863 (add more ice tests ) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#122820 - oli-obk:no_ord_def_id, r=estebank Stop using `<DefId as Ord>` in various diagnostic situations work towards rust-lang#90317 Reverts part of rust-lang#106281, as it sorts constants and that's problematic since it can contain `ParamConst`, which contains `DefId`s
…rister Remove `DefId`'s `Partial/Ord` impls work towards rust-lang#90317 based on rust-lang#122824 and rust-lang#122820 r? `@michaelwoerister`
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#121619 (Experimental feature postfix match) - rust-lang#122370 (Gracefully handle `AnonConst` in `diagnostic_hir_wf_check()`) - rust-lang#122537 (interpret/allocation: fix aliasing issue in interpreter and refactor getters a bit) - rust-lang#122542 (coverage: Clean up marker statements that aren't needed later) - rust-lang#122800 (Add `NonNull::<[T]>::is_empty`.) - rust-lang#122820 (Stop using `<DefId as Ord>` in various diagnostic situations) - rust-lang#122847 (Suggest `RUST_MIN_STACK` workaround on overflow) - rust-lang#122855 (Fix Itanium mangling usizes) - rust-lang#122863 (add more ice tests ) r? `@ghost` `@rustbot` modify labels: rollup
work towards #90317
Reverts part of #106281, as it sorts constants and that's problematic since it can contain
ParamConst
, which containsDefId
s