File tree 2 files changed +3
-3
lines changed
compiler/rustc_middle/src
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1361,7 +1361,7 @@ rustc_queries! {
1361
1361
/// correctly.
1362
1362
query has_structural_eq_impl( ty: Ty <' tcx>) -> bool {
1363
1363
desc {
1364
- "computing whether `{}` implements `PartialStructuralEq `" ,
1364
+ "computing whether `{}` implements `StructuralPartialEq `" ,
1365
1365
ty
1366
1366
}
1367
1367
}
Original file line number Diff line number Diff line change @@ -1150,7 +1150,7 @@ impl<'tcx> Ty<'tcx> {
1150
1150
/// Primitive types (`u32`, `str`) have structural equality by definition. For composite data
1151
1151
/// types, equality for the type as a whole is structural when it is the same as equality
1152
1152
/// between all components (fields, array elements, etc.) of that type. For ADTs, structural
1153
- /// equality is indicated by an implementation of `PartialStructuralEq ` for that type.
1153
+ /// equality is indicated by an implementation of `StructuralPartialEq ` for that type.
1154
1154
///
1155
1155
/// This function is "shallow" because it may return `true` for a composite type whose fields
1156
1156
/// are not `StructuralPartialEq`. For example, `[T; 4]` has structural equality regardless of `T`
@@ -1160,7 +1160,7 @@ impl<'tcx> Ty<'tcx> {
1160
1160
#[ inline]
1161
1161
pub fn is_structural_eq_shallow ( self , tcx : TyCtxt < ' tcx > ) -> bool {
1162
1162
match self . kind ( ) {
1163
- // Look for an impl of `PartialStructuralEq `.
1163
+ // Look for an impl of `StructuralPartialEq `.
1164
1164
ty:: Adt ( ..) => tcx. has_structural_eq_impl ( self ) ,
1165
1165
1166
1166
// Primitive types that satisfy `Eq`.
You can’t perform that action at this time.
0 commit comments