Add note to is_known_rigid
This commit is contained in:
parent
0fd7ce99b0
commit
7fc081b4d9
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
pub fn is_known_rigid(self) -> bool {
|
||||||
match self.kind() {
|
match self.kind() {
|
||||||
Bool
|
Bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue