rust/tests/mir-opt/building
Matthias Krüger 08187c32c7
Rollup merge of #129664 - adetaylor:arbitrary-self-types-pointers-feature-gate, r=wesleywiser
Arbitrary self types v2: pointers feature gate.

The main `arbitrary_self_types` feature gate will shortly be reused for a new version of arbitrary self types which we are amending per [this RFC](https://github.com/rust-lang/rfcs/blob/master/text/3519-arbitrary-self-types-v2.md). The main amendments are:

* _do_ support `self` types which can't safely implement `Deref`
* do _not_ support generic `self` types
* do _not_ support raw pointers as `self` types.

This PR relates to the last of those bullet points: this strips pointer support from the current `arbitrary_self_types` feature. We expect this to cause some amount of breakage for crates using this unstable feature to allow raw pointer self types. If that's the case, we want to know about it, and we want crate authors to know of the upcoming changes.

For now, this can be resolved by adding the new
`arbitrary_self_types_pointers` feature to such crates. If we determine that use of raw pointers as self types is common, then we may maintain that as an unstable feature even if we come to stabilize the rest of the `arbitrary_self_types` support in future. If we don't hear that this PR is causing breakage, then perhaps we don't need it at all, even behind an unstable feature gate.

[Tracking issue](https://github.com/rust-lang/rust/issues/44874)

This is [step 4 of the plan outlined here](https://github.com/rust-lang/rust/issues/44874#issuecomment-2122179688)
2024-09-05 03:47:42 +02:00
..
custom Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
match Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
async_await.a-{closure#0}.coroutine_resume.0.mir
async_await.b-{closure#0}.coroutine_resume.0.mir Create opaque definitions in resolver. 2024-08-31 20:14:43 +00:00
async_await.rs
enum_cast.bar.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
enum_cast.boo.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
enum_cast.droppy.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
enum_cast.far.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
enum_cast.foo.built.after.mir
enum_cast.offsetty.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
enum_cast.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
enum_cast.signy.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
enum_cast.unsigny.built.after.mir
eq_never_type._f.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
eq_never_type.rs
issue_49232.main.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
issue_49232.rs
issue_101867.main.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
issue_101867.rs
issue_110508.{impl#0}-BAR.built.after.mir
issue_110508.{impl#0}-SELF_BAR.built.after.mir
issue_110508.rs
logical_or_in_conditional.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
logical_or_in_conditional.test_complex.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
logical_or_in_conditional.test_or.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
receiver_ptr_mutability.main.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
receiver_ptr_mutability.rs Arbitrary self types v2: pointers feature gate. 2024-08-27 17:32:35 +00:00
shifts.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
shifts.shift_signed.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
shifts.shift_unsigned.built.after.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
storage_live_dead_in_statics.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
storage_live_dead_in_statics.XXX.built.after.mir
uniform_array_move_out.move_out_by_subslice.built.after.mir Return the otherwise_block instead of passing it as argument 2024-07-09 22:47:35 +02:00
uniform_array_move_out.move_out_from_end.built.after.mir Return the otherwise_block instead of passing it as argument 2024-07-09 22:47:35 +02:00
uniform_array_move_out.rs
while_storage.rs Update mir-opt filechecks 2024-08-18 15:52:23 -07:00
while_storage.while_loop.PreCodegen.after.panic-abort.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
while_storage.while_loop.PreCodegen.after.panic-unwind.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00