Skip to content

Commit 51abf0f

Browse files
compiler-errorsgitbot
authored and
gitbot
committed
Reword doc comment on CoercePointeeValidated
1 parent 5ba8c5c commit 51abf0f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

core/src/marker.rs

+5-6
Original file line numberDiff line numberDiff line change
@@ -1290,13 +1290,12 @@ pub macro CoercePointee($item:item) {
12901290
/* compiler built-in */
12911291
}
12921292

1293-
/// A validation trait that is implemented on data with `derive(CoercePointee)`
1294-
/// so that the compiler can enforce a set of rules that the target data must
1295-
/// conform to in order for the derived behaviours are safe and useful for
1296-
/// the purpose of the said macro.
1293+
/// A trait that is implemented for ADTs with `derive(CoercePointee)` so that
1294+
/// the compiler can enforce the derive impls are valid post-expansion, since
1295+
/// the derive has stricter requirements than if the impls were written by hand.
12971296
///
1298-
/// This trait will not ever be exposed for use as public part of the library
1299-
/// and shall not ever be stabilised.
1297+
/// This trait is not intended to be implemented by users or used other than
1298+
/// validation, so it should never be stabilized.
13001299
#[cfg(not(bootstrap))]
13011300
#[lang = "coerce_pointee_validated"]
13021301
#[unstable(feature = "coerce_pointee_validated", issue = "none")]

0 commit comments

Comments
 (0)