Repository navigation
Add a separate feature gate for EIIs with default impls - #165882
Conversation
|
r? @tmiasko rustbot has assigned @tmiasko. Use Why was this reviewer chosen?The reviewer was selected based on:
|
edc27e0 to
dfa7734
Compare
|
@bors r=JonathanBrouwer |
… r=JonathanBrouwer Add a separate feature gate for EIIs with default impls This will allow marking EIIs without default impls as not-incomplete and possibly even stabilize them before we get EIIs with default impls fully working across all targets. EIIs without default impls can be implemented (and will be in another PR of mine) in a way that is guaranteed to work on all targets that rustc supports at all. EIIs with default impls afaik however depend on either weak symbols (which are broken on several targets), global constructors writing to a static or having rustc drive the linker (which several projects using Rust don't do). cc @jdonszelmann
|
💔 I suspect this PR failed tests as part of a rollup After fixing the problem, consider running a try job for the failed job before re-approving. Link to failure: #165929 (comment) |
|
This pull request was unapproved. This PR was contained in a rollup (#165929), which was unapproved. |
This will allow marking EIIs without default impls as not-incomplete and possibly even stabilize them before we get EIIs with default impls fully working across all targets. EIIs without default impls can be implemented (and will be in another PR of mine) in a way that is guaranteed to work on all targets that rustc supports at all. EIIs with default impls afaik however depend on either weak symbols (which are broken on several targets), global constructors writing to a static or having rustc drive the linker (which several projects using Rust don't do).
dfa7734 to
d384f89
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Disabled the feature gate test on targets where rustc complains that EIIs with defaults are not supported. @rustbot ready |
|
@bors r+ |
… r=JonathanBrouwer Add a separate feature gate for EIIs with default impls This will allow marking EIIs without default impls as not-incomplete and possibly even stabilize them before we get EIIs with default impls fully working across all targets. EIIs without default impls can be implemented (and will be in another PR of mine) in a way that is guaranteed to work on all targets that rustc supports at all. EIIs with default impls afaik however depend on either weak symbols (which are broken on several targets), global constructors writing to a static or having rustc drive the linker (which several projects using Rust don't do). cc @jdonszelmann
…uwer Rollup of 21 pull requests Successful merges: - #166011 (Clean revert of recent `String::retain` changes) - #165475 (Add a `!type` annotation to a vtable for every supertrait that is a prefix of the vtable) - #165881 (fix MSVC calling convention byte counts) - #165882 (Add a separate feature gate for EIIs with default impls) - #165922 (Prevent inlining of foreign items through glob reexports named `_`) - #165979 (Improve index inference diagnostics) - #165983 (Update `minifier-rs` dependency version to `0.5.0`) - #165613 (Handle trait default values in `mir_for_direct_const`) - #165677 (Rewrite relaxed bound policy code) - #165861 (cg_llvm: Use an invariant lifetime brand for LLVM attributes) - #165990 (gca fixed issue regression tests) - #165993 (pipe_subprocess test: use libtest harness) - #165998 (Cleanup borrowck) - #166005 (add ABI compat checks for new float types) - #166009 (Improve `String::insert{,_str}` safety comments) - #166021 (Correct and expand E0225 error explanation.) - #166029 (rustc-dev-guide subtree update) - #166031 (Split packed structs out of `const_struct`) - #166032 (Normalize the simd field type before reading its length) - #166034 (Three LLVM-type-related cleanups) - #166047 (Document AltiVec requirement for powerpc64-unknown-linux-gnuelfv2)
Rollup merge of #165882 - bjorn3:eii_defaults_separate_gate, r=JonathanBrouwer Add a separate feature gate for EIIs with default impls This will allow marking EIIs without default impls as not-incomplete and possibly even stabilize them before we get EIIs with default impls fully working across all targets. EIIs without default impls can be implemented (and will be in another PR of mine) in a way that is guaranteed to work on all targets that rustc supports at all. EIIs with default impls afaik however depend on either weak symbols (which are broken on several targets), global constructors writing to a static or having rustc drive the linker (which several projects using Rust don't do). cc @jdonszelmann
…uwer Rollup of 21 pull requests Successful merges: - rust-lang/rust#166011 (Clean revert of recent `String::retain` changes) - rust-lang/rust#165475 (Add a `!type` annotation to a vtable for every supertrait that is a prefix of the vtable) - rust-lang/rust#165881 (fix MSVC calling convention byte counts) - rust-lang/rust#165882 (Add a separate feature gate for EIIs with default impls) - rust-lang/rust#165922 (Prevent inlining of foreign items through glob reexports named `_`) - rust-lang/rust#165979 (Improve index inference diagnostics) - rust-lang/rust#165983 (Update `minifier-rs` dependency version to `0.5.0`) - rust-lang/rust#165613 (Handle trait default values in `mir_for_direct_const`) - rust-lang/rust#165677 (Rewrite relaxed bound policy code) - rust-lang/rust#165861 (cg_llvm: Use an invariant lifetime brand for LLVM attributes) - rust-lang/rust#165990 (gca fixed issue regression tests) - rust-lang/rust#165993 (pipe_subprocess test: use libtest harness) - rust-lang/rust#165998 (Cleanup borrowck) - rust-lang/rust#166005 (add ABI compat checks for new float types) - rust-lang/rust#166009 (Improve `String::insert{,_str}` safety comments) - rust-lang/rust#166021 (Correct and expand E0225 error explanation.) - rust-lang/rust#166029 (rustc-dev-guide subtree update) - rust-lang/rust#166031 (Split packed structs out of `const_struct`) - rust-lang/rust#166032 (Normalize the simd field type before reading its length) - rust-lang/rust#166034 (Three LLVM-type-related cleanups) - rust-lang/rust#166047 (Document AltiVec requirement for powerpc64-unknown-linux-gnuelfv2)
…uwer Rollup of 21 pull requests Successful merges: - rust-lang/rust#166011 (Clean revert of recent `String::retain` changes) - rust-lang/rust#165475 (Add a `!type` annotation to a vtable for every supertrait that is a prefix of the vtable) - rust-lang/rust#165881 (fix MSVC calling convention byte counts) - rust-lang/rust#165882 (Add a separate feature gate for EIIs with default impls) - rust-lang/rust#165922 (Prevent inlining of foreign items through glob reexports named `_`) - rust-lang/rust#165979 (Improve index inference diagnostics) - rust-lang/rust#165983 (Update `minifier-rs` dependency version to `0.5.0`) - rust-lang/rust#165613 (Handle trait default values in `mir_for_direct_const`) - rust-lang/rust#165677 (Rewrite relaxed bound policy code) - rust-lang/rust#165861 (cg_llvm: Use an invariant lifetime brand for LLVM attributes) - rust-lang/rust#165990 (gca fixed issue regression tests) - rust-lang/rust#165993 (pipe_subprocess test: use libtest harness) - rust-lang/rust#165998 (Cleanup borrowck) - rust-lang/rust#166005 (add ABI compat checks for new float types) - rust-lang/rust#166009 (Improve `String::insert{,_str}` safety comments) - rust-lang/rust#166021 (Correct and expand E0225 error explanation.) - rust-lang/rust#166029 (rustc-dev-guide subtree update) - rust-lang/rust#166031 (Split packed structs out of `const_struct`) - rust-lang/rust#166032 (Normalize the simd field type before reading its length) - rust-lang/rust#166034 (Three LLVM-type-related cleanups) - rust-lang/rust#166047 (Document AltiVec requirement for powerpc64-unknown-linux-gnuelfv2)
This will allow marking EIIs without default impls as not-incomplete and possibly even stabilize them before we get EIIs with default impls fully working across all targets. EIIs without default impls can be implemented (and will be in another PR of mine) in a way that is guaranteed to work on all targets that rustc supports at all. EIIs with default impls afaik however depend on either weak symbols (which are broken on several targets), global constructors writing to a static or having rustc drive the linker (which several projects using Rust don't do).
cc @jdonszelmann