Skip to content

Commit 3f35ab3

Browse files
Add note to is_known_rigid
1 parent 0fd7ce9 commit 3f35ab3

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

compiler/rustc_middle/src/ty/sty.rs

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

2949+
/// Whether the outermost type cannot be further normalized, resolved, or
2950+
/// substituted. This includes all built-in types, but also things like
2951+
/// ADTs and dynamic types, even if their arguments or nested types may be
2952+
/// further simplified.
29492953
pub fn is_known_rigid(self) -> bool {
29502954
match self.kind() {
29512955
Bool

0 commit comments

Comments
 (0)