Skip to content

Commit 66f272d

Browse files
authored
Rollup merge of rust-lang#116041 - compiler-errors:rigid-note, r=RalfJung
Add note to `is_known_rigid` Adds a note requested by `@RalfJung` in rust-lang#114941 (comment) Let me know if there are any other fns that need documentation, I could throw them into this PR too :)
2 parents fc4cfe0 + 7fc081b commit 66f272d

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

Diff for: 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)