rust/compiler/rustc_hir_analysis/src/check
Matthias Krüger 95262e4602
Rollup merge of #116253 - asquared31415:adt_const_params_feature, r=compiler-errors
Make `adt_const_params` feature suggestion consistent with other features and improve when it is emitted

Makes the suggestion to add `adt_const_params` formatted like every other feature gate (notably this makes it such that the playground recognizes it). Additionally improves the situations in which that help is emitted so that it's only emitted when the type would be valid or the type *could* be valid (using a slightly incorrect heuristic that favors suggesting the feature over not) instead of, for example, implying that adding the feature would allow the use of `String`.

Also adds the "the only supported types are integers, `bool` and `char`" note to the errors on fn and raw pointers.

r? `@compiler-errors`
2023-09-29 10:11:15 +02:00
..
compare_impl_item Anonymize binders for refining_impl_trait check 2023-09-26 18:11:12 +00:00
check.rs Auto merge of #115659 - compiler-errors:itp, r=cjgillot 2023-09-28 21:35:18 +00:00
compare_impl_item.rs Auto merge of #116072 - compiler-errors:rpitit-implied-bounds, r=aliemjay 2023-09-26 01:50:12 +00:00
dropck.rs Remove constness from ParamEnv 2023-07-27 15:50:42 +00:00
entry.rs Auto merge of #115897 - eduardosm:check-fn-sig, r=compiler-errors 2023-09-21 22:59:13 +00:00
intrinsic.rs Remove span from BrAnon. 2023-09-24 09:46:55 +00:00
intrinsicck.rs Allow MaybeUninit in input and output of inline assembly 2023-08-23 21:57:18 +09:00
mod.rs Allow higher-ranked fn sigs in ValuePairs 2023-09-22 19:47:41 +00:00
region.rs Move let expression checking to parsing 2023-09-11 15:51:18 +00:00
wfcheck.rs make adt_const_params feature suggestion more consistent with others and only suggest it when the type can probably work 2023-09-28 23:10:04 +00:00