Rollup merge of #116041 - compiler-errors:rigid-note, r=RalfJung

Add note to `is_known_rigid`

Adds a note requested by `@RalfJung` in https://github.com/rust-lang/rust/pull/114941#discussion_r1329963704

Let me know if there are any other fns that need documentation, I could throw them into this PR too :)
This commit is contained in:
Matthias Krüger 2023-09-22 12:15:28 +02:00 committed by GitHub
commit 66f272d6ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2946,6 +2946,11 @@ pub fn is_c_void(self, tcx: TyCtxt<'_>) -> bool {
}
}
/// Returns `true` when the outermost type cannot be further normalized,
/// resolved, or substituted. This includes all primitive types, but also
/// things like ADTs and trait objects, sice even if their arguments or
/// nested types may be further simplified, the outermost [`TyKind`] or
/// type constructor remains the same.
pub fn is_known_rigid(self) -> bool {
match self.kind() {
Bool