5

Make `adt_const_params` feature suggestion consistent with other features and im...

 11 months ago
source link: https://github.com/rust-lang/rust/pull/116253
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Conversation

Contributor

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


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK