Make `adt_const_params` feature suggestion consistent with other features and im...
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.
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.
Recommend
-
9
Tracking Issue for feature(int_bits_const): <integer>::BITS #76904 m-ou-s...
-
7
New issue Tracking Issue for #![feature(const_cell_into_inner)] #78729
-
8
WhatsApp for iOS testing new sticker suggestion feature By José AdornoMa...
-
5
Software Rust 2021 edition to arrive in October with 'more consistent panic' and...
-
5
Copy link Contributor lcnr commented...
-
7
Copy link Contributor est31 commented
-
12
Contributor ...
-
3
-
4
Tracking Issue for const MaybeUninit::as(_mut)_ptr (feature: const_maybe_uninit_as_ptr) #75251
-
3
Conversation Member cc
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK