rust/tests/ui/cast
Adrian Taylor e77eb042ce 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-08-27 17:32:35 +00:00
..
cast-as-bool.rs
cast-as-bool.stderr
cast-char.rs
cast-char.stderr
cast-does-fallback.rs
cast-errors-issue-43825.rs
cast-errors-issue-43825.stderr
cast-from-nil.rs
cast-from-nil.stderr
cast-int-to-char.rs
cast-int-to-char.stderr
cast-macro-lhs.rs
cast-macro-lhs.stderr
cast-pointee-projection.rs
cast-region-to-uint.rs
cast-rfc0401-2.rs
cast-rfc0401-2.stderr
cast-rfc0401-vtable-kinds.rs
cast-rfc0401-vtable-kinds.stderr
cast-rfc0401.rs
cast-to-bare-fn.rs
cast-to-bare-fn.stderr
cast-to-infer-ty.rs
cast-to-nil.rs
cast-to-nil.stderr
cast-to-slice.rs
cast-to-slice.stderr
cast-to-unsized-trait-object-suggestion.rs
cast-to-unsized-trait-object-suggestion.stderr
cast.rs
casts-differing-anon.rs
casts-differing-anon.stderr
casts-issue-46365.rs
casts-issue-46365.stderr
codegen-object-shim.rs
dyn-tails-need-normalization.rs
enum-to-numeric-cast.rs
enum-to-numeric-cast.stderr
fat-ptr-cast-rpass.rs
fat-ptr-cast-rpass.stderr
fat-ptr-cast.rs
fat-ptr-cast.stderr
ice-cast-type-with-error-124848.rs
ice-cast-type-with-error-124848.stderr
issue-10991.rs
issue-10991.stderr
issue-17444.rs
issue-17444.stderr
issue-84213.fixed
issue-84213.rs
issue-84213.stderr
issue-85586.rs
issue-85586.stderr
issue-88621.rs
issue-88621.stderr
issue-89497.fixed
issue-89497.rs
issue-89497.stderr
issue-106883-is-empty.rs
issue-106883-is-empty.stderr
ptr-to-ptr-different-regions.rs
ptr-to-trait-obj-add-auto.rs
ptr-to-trait-obj-add-auto.stderr
ptr-to-trait-obj-add-super-auto.rs
ptr-to-trait-obj-different-args.rs
ptr-to-trait-obj-different-args.stderr diagnostics: use DeepRejectCtxt for check 2024-08-13 10:01:13 -07:00
ptr-to-trait-obj-different-regions-id-trait.current.stderr Normalize struct tail properly in borrowck and hir typeck 2024-08-11 19:40:03 -04:00
ptr-to-trait-obj-different-regions-id-trait.next.stderr Normalize struct tail properly in borrowck and hir typeck 2024-08-11 19:40:03 -04:00
ptr-to-trait-obj-different-regions-id-trait.rs Normalize struct tail properly in borrowck and hir typeck 2024-08-11 19:40:03 -04:00
ptr-to-trait-obj-different-regions-lt-ext.rs Arbitrary self types v2: pointers feature gate. 2024-08-27 17:32:35 +00:00
ptr-to-trait-obj-different-regions-lt-ext.stderr
ptr-to-trait-obj-different-regions-misc.rs
ptr-to-trait-obj-different-regions-misc.stderr
ptr-to-trait-obj-ok.rs
ptr-to-trait-obj-wrap-upcast.rs
ptr-to-trait-obj-wrap-upcast.stderr
supported-cast.rs
unsized-struct-cast.rs
unsized-struct-cast.stderr
unsized-union-ice.rs
unsized-union-ice.stderr
unsupported-cast.rs
unsupported-cast.stderr