We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fd7ce9 commit 7fc081bCopy full SHA for 7fc081b
compiler/rustc_middle/src/ty/sty.rs
@@ -2946,6 +2946,11 @@ impl<'tcx> Ty<'tcx> {
2946
}
2947
2948
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.
2954
pub fn is_known_rigid(self) -> bool {
2955
match self.kind() {
2956
Bool
0 commit comments