rust/compiler/rustc_hir_analysis/src
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
..
check Arbitrary self types v2: pointers feature gate. 2024-08-27 17:32:35 +00:00
coherence Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors 2024-08-14 00:56:53 +00:00
collect Fix elided_named_lifetimes in code 2024-08-24 19:21:32 +03:00
errors Reformat use declarations. 2024-07-29 08:26:52 +10:00
hir_ty_lowering Rollup merge of #129590 - compiler-errors:ref-tykind, r=fmease 2024-08-26 01:49:04 +02:00
impl_wf_check Reformat use declarations. 2024-07-29 08:26:52 +10:00
outlives Reformat use declarations. 2024-07-29 08:26:52 +10:00
variance Print the generic parameter along with the variance in dumps. 2024-08-23 23:00:45 +00:00
autoderef.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
bounds.rs Add constness to TraitDef 2024-07-03 15:37:34 +00:00
check_unused.rs Remove LintDiagnostic::msg 2024-05-23 04:08:35 +02:00
collect.rs Rework how we emit errors for unresolved object lifetimes 2024-08-24 14:55:31 -04:00
constrained_generic_params.rs Auto merge of #125076 - compiler-errors:alias-term, r=lcnr 2024-05-13 22:20:43 +00:00
delegation.rs Use assert_matches around the compiler 2024-08-11 12:25:39 -04:00
errors.rs Use bool in favor of Option<()> for diagnostics 2024-08-21 01:31:11 -04:00
hir_wf_check.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
impl_wf_check.rs Use bool in favor of Option<()> for diagnostics 2024-08-21 01:31:11 -04:00
lib.rs Use assert_matches around the compiler 2024-08-11 12:25:39 -04:00