We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fd7ce9 commit e63b41fCopy full SHA for e63b41f
compiler/rustc_middle/src/ty/sty.rs
@@ -2946,6 +2946,11 @@ impl<'tcx> Ty<'tcx> {
2946
}
2947
2948
2949
+ /// Whether the outermost type cannot be further normalized, resolved, or
2950
+ /// substituted. This includes all primitive types, but also things like
2951
+ /// ADTs and trait objects, sice even if their arguments or nested types
2952
+ /// may be further simplified, the outermost [`TyKind`] or type constructor
2953
+ /// remains the same.
2954
pub fn is_known_rigid(self) -> bool {
2955
match self.kind() {
2956
Bool
0 commit comments