Skip to content

Commit 5b9aa0d

Browse files
compiler-errorsgitbot
authored and
gitbot
committed
Simplify trait error message for CoercePointee validation
1 parent 2338290 commit 5b9aa0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/marker.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,7 @@ pub trait FnPtr: Copy + Clone {
13021302
/// ```
13031303
#[rustc_builtin_macro(CoercePointee, attributes(pointee))]
13041304
#[allow_internal_unstable(dispatch_from_dyn, coerce_unsized, unsize, coerce_pointee_validated)]
1305+
#[cfg_attr(not(test), rustc_diagnostic_item = "CoercePointee")]
13051306
#[unstable(feature = "derive_coerce_pointee", issue = "123430")]
13061307
pub macro CoercePointee($item:item) {
13071308
/* compiler built-in */

0 commit comments

Comments
 (0)