rust/compiler/rustc_hir_analysis/src
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
..
astconv Auto merge of #116163 - compiler-errors:lazyness, r=oli-obk 2023-09-27 01:48:53 +00:00
check Rollup merge of #116253 - asquared31415:adt_const_params_feature, r=compiler-errors 2023-09-29 10:11:15 +02:00
coherence Auto merge of #115821 - obeis:hir-analysis-migrate-diagnostics-5, r=compiler-errors 2023-09-29 00:24:57 +00:00
collect Don't store lazyness in DefKind 2023-09-26 02:53:59 +00:00
impl_wf_check Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
outlives refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
structured_errors lower impl const to bind to host effect param 2023-08-06 13:34:53 +00:00
variance Don't store lazyness in DefKind 2023-09-26 02:53:59 +00:00
autoderef.rs Structurally normalize weak and inherent too 2023-08-07 19:05:59 +00:00
bounds.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
check_unused.rs inline format!() args from rustc_codegen_llvm to the end (4) 2023-07-25 23:20:28 +02:00
collect.rs don't clone copy types 2023-09-28 00:20:32 +02:00
constrained_generic_params.rs Opaques do not constrain generic params 2023-08-12 17:14:13 +00:00
errors.rs Auto merge of #115821 - obeis:hir-analysis-migrate-diagnostics-5, r=compiler-errors 2023-09-29 00:24:57 +00:00
hir_wf_check.rs Lower generic const items to HIR 2023-07-28 22:21:40 +02:00
impl_wf_check.rs Use {Local}ModDefId in many queries 2023-08-14 07:22:48 +00:00
lib.rs rustc_hir_analysis: add a helper to check function the signature mismatches 2023-09-19 18:15:23 +02:00
structured_errors.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00