about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-09-29 10:11:15 +0200
committerGitHub <noreply@github.com>2023-09-29 10:11:15 +0200
commit95262e460206031bd99faba80942a23b20c44383 (patch)
tree40630c727c723a7f642c9bf848ec3bb83ba912d0 /compiler/rustc_parse/src
parent92234f949a2d8a4d7a20c03cae82ff2ccd008f79 (diff)
parentb53a1b38089f30a34d932ad4030f3d529664c9df (diff)
downloadrust-95262e460206031bd99faba80942a23b20c44383.tar.gz
rust-95262e460206031bd99faba80942a23b20c44383.zip
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`
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions