rust/compiler
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
..
rustc Link std statically in rustc_driver 2024-08-11 04:16:53 +02:00
rustc_abi Add warn(unreachable_pub) to several crates. 2024-08-16 08:46:13 +10:00
rustc_arena Add warn(unreachable_pub) to rustc_arena. 2024-08-16 08:46:22 +10:00
rustc_ast Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
rustc_ast_ir Add warn(unreachable_pub) to several crates. 2024-08-16 08:46:13 +10:00
rustc_ast_lowering Rollup merge of #129626 - compiler-errors:explicit-named, r=fmease 2024-08-27 00:42:02 +02:00
rustc_ast_passes Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
rustc_ast_pretty Add warn(unreachable_pub) to rustc_ast_pretty. 2024-08-16 08:46:46 +10:00
rustc_attr Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
rustc_baked_icu_data Don't add warn(unreachable_pub) to rustc_baked_icu. 2024-08-16 08:46:52 +10:00
rustc_borrowck Rollup merge of #129340 - stephen-lazaro:u/slazaro/issue-129274, r=compiler-errors 2024-08-27 00:42:00 +02:00
rustc_builtin_macros Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
rustc_codegen_cranelift Rollup merge of #128731 - RalfJung:simd-shuffle-vector, r=workingjubilee 2024-08-27 01:46:50 -05:00
rustc_codegen_gcc Rollup merge of #128731 - RalfJung:simd-shuffle-vector, r=workingjubilee 2024-08-27 01:46:50 -05:00
rustc_codegen_llvm Rollup merge of #129536 - beetrees:f16-f128-inline-asm-aarch64, r=Amanieu 2024-08-27 01:46:53 -05:00
rustc_codegen_ssa Rollup merge of #129418 - petrochenkov:libsearch2, r=jieyouxu 2024-08-27 01:46:51 -05:00
rustc_const_eval Rollup merge of #128942 - RalfJung:interpret-weak-memory, r=saethlin 2024-08-27 01:46:51 -05:00
rustc_data_structures Update indexmap and use IndexMap::append 2024-08-13 16:16:57 -07:00
rustc_driver Use tidy to sort crate attributes for all compiler crates. 2024-06-12 15:49:10 +10:00
rustc_driver_impl Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errors 2024-08-11 07:51:51 +02:00
rustc_error_codes stabilize raw_ref_op 2024-08-18 19:46:53 +02:00
rustc_error_messages Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_errors Fix elided_named_lifetimes in code 2024-08-24 19:21:32 +03:00
rustc_expand Use bool in favor of Option<()> for diagnostics 2024-08-21 01:31:11 -04:00
rustc_feature Arbitrary self types v2: pointers feature gate. 2024-08-27 17:32:35 +00:00
rustc_fluent_macro Update annotate-snippets to 0.11 2024-08-19 20:22:07 +00:00
rustc_fs_util Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_graphviz Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_hir Auto merge of #127672 - compiler-errors:precise-capturing, r=spastorino 2024-08-20 10:42:55 +00:00
rustc_hir_analysis Arbitrary self types v2: pointers feature gate. 2024-08-27 17:32:35 +00:00
rustc_hir_pretty Use FnSig instead of raw FnDecl for ForeignItemKind::Fn 2024-08-16 14:10:06 -04:00
rustc_hir_typeck Arbitrary self types v2: pointers feature gate. 2024-08-27 17:32:35 +00:00
rustc_incremental Removes dead code from the compiler 2024-08-25 13:41:39 +08:00
rustc_index library: Move unstable API of new_uninit to new features 2024-08-23 20:52:02 -07:00
rustc_index_macros Remove usage of specialization from newtype_index! 2024-06-30 16:42:53 +00:00
rustc_infer Remove a couple of unused feature enables 2024-08-26 19:52:14 +00:00
rustc_interface Rollup merge of #126985 - Mrmaxmeier:dwarf-embed-source, r=davidtwco 2024-08-27 01:46:49 -05:00
rustc_lexer Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_lint Rollup merge of #129600 - traviscross:TC/tie-impl_trait_overcaptures-to-rust-2024, r=compiler-errors 2024-08-26 17:25:34 +02:00
rustc_lint_defs Rollup merge of #129199 - RalfJung:writes_through_immutable_pointer, r=compiler-errors 2024-08-24 22:14:12 +02:00
rustc_llvm Rollup merge of #126985 - Mrmaxmeier:dwarf-embed-source, r=davidtwco 2024-08-27 01:46:49 -05:00
rustc_log Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_macros Remove a couple of unused feature enables 2024-08-26 19:52:14 +00:00
rustc_metadata Fix elided_named_lifetimes in code 2024-08-24 19:21:32 +03:00
rustc_middle Rollup merge of #129590 - compiler-errors:ref-tykind, r=fmease 2024-08-26 01:49:04 +02:00
rustc_mir_build Avoid taking reference of &TyKind 2024-08-25 16:02:29 -04:00
rustc_mir_dataflow rename AddressOf -> RawBorrow inside the compiler 2024-08-18 19:46:53 +02:00
rustc_mir_transform Simplify some redundant field names 2024-08-21 01:31:42 -04:00
rustc_monomorphize Avoid taking reference of &TyKind 2024-08-25 16:02:29 -04:00
rustc_next_trait_solver Rollup merge of #128828 - lcnr:search-graph-11, r=compiler-errors 2024-08-14 21:43:07 +08:00
rustc_parse Rollup merge of #128524 - chenyukang:yukang-fix-127930-invalid-outer-style-sugg, r=cjgillot 2024-08-24 21:03:31 -05:00
rustc_parse_format Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_passes Rollup merge of #129544 - mu001999-contrib:dead-code/clean, r=compiler-errors 2024-08-26 01:49:03 +02:00
rustc_pattern_analysis Rollup merge of #128965 - Zalathar:no-pat, r=Nadrieril 2024-08-15 18:44:16 -07:00
rustc_privacy Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_query_impl Simplify some redundant field names 2024-08-21 01:31:42 -04:00
rustc_query_system fix: simple typo in compiler directory 2024-08-20 20:50:32 +08:00
rustc_resolve mv build_reduced_graph_for_external_crate_res into Resolver 2024-08-26 09:24:42 +08:00
rustc_sanitizers Rollup merge of #129345 - compiler-errors:scratch4, r=jieyouxu 2024-08-21 18:15:06 +02:00
rustc_serialize Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustc_session Rollup merge of #129418 - petrochenkov:libsearch2, r=jieyouxu 2024-08-27 01:46:51 -05:00
rustc_smir Simplify some redundant field names 2024-08-21 01:31:42 -04:00
rustc_span Arbitrary self types v2: pointers feature gate. 2024-08-27 17:32:35 +00:00
rustc_symbol_mangling Shrink TyKind::FnPtr. 2024-08-09 14:33:25 +10:00
rustc_target Rollup merge of #129536 - beetrees:f16-f128-inline-asm-aarch64, r=Amanieu 2024-08-27 01:46:53 -05:00
rustc_trait_selection Rollup merge of #129590 - compiler-errors:ref-tykind, r=fmease 2024-08-26 01:49:04 +02:00
rustc_traits Remove redundant type ops 2024-08-14 14:18:17 -04:00
rustc_transmute Removes dead code from the compiler 2024-08-25 13:41:39 +08:00
rustc_ty_utils Rollup merge of #129032 - jswrenn:transmute-method, r=compiler-errors 2024-08-27 00:41:59 +02:00
rustc_type_ir Rollup merge of #129526 - compiler-errors:fx, r=lqd 2024-08-26 01:49:02 +02:00
rustc_type_ir_macros Reformat use declarations. 2024-07-29 08:26:52 +10:00
stable_mir Reformat use declarations. 2024-07-29 08:26:52 +10:00