Skip to content

Commit 7fc081b

Browse files
Add note to is_known_rigid
1 parent 0fd7ce9 commit 7fc081b

File tree

1 file changed

+5
-0
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+5
-0
lines changed

compiler/rustc_middle/src/ty/sty.rs

+5
Original file line numberDiff line numberDiff line change
@@ -2946,6 +2946,11 @@ impl<'tcx> Ty<'tcx> {
29462946
}
29472947
}
29482948

2949+
/// Returns `true` when the outermost type cannot be further normalized,
2950+
/// resolved, or substituted. This includes all primitive types, but also
2951+
/// things like ADTs and trait objects, sice even if their arguments or
2952+
/// nested types may be further simplified, the outermost [`TyKind`] or
2953+
/// type constructor remains the same.
29492954
pub fn is_known_rigid(self) -> bool {
29502955
match self.kind() {
29512956
Bool

0 commit comments

Comments
 (0)