Add note to is_known_rigid

This commit is contained in:
Michael Goulet 2023-09-21 19:05:09 +00:00
parent 0fd7ce99b0
commit 7fc081b4d9

View File

@ -2946,6 +2946,11 @@ impl<'tcx> Ty<'tcx> {
}
}
/// Returns `true` when the outermost type cannot be further normalized,
/// resolved, or substituted. This includes all primitive types, but also
/// things like ADTs and trait objects, sice even if their arguments or
/// nested types may be further simplified, the outermost [`TyKind`] or
/// type constructor remains the same.
pub fn is_known_rigid(self) -> bool {
match self.kind() {
Bool