File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/rustc_middle/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1361,7 +1361,7 @@ rustc_queries! {
13611361 /// correctly.
13621362 query has_structural_eq_impl( ty: Ty <' tcx>) -> bool {
13631363 desc {
1364- "computing whether `{}` implements `PartialStructuralEq `" ,
1364+ "computing whether `{}` implements `StructuralPartialEq `" ,
13651365 ty
13661366 }
13671367 }
Original file line number Diff line number Diff line change @@ -1150,7 +1150,7 @@ impl<'tcx> Ty<'tcx> {
11501150 /// Primitive types (`u32`, `str`) have structural equality by definition. For composite data
11511151 /// types, equality for the type as a whole is structural when it is the same as equality
11521152 /// 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.
11541154 ///
11551155 /// This function is "shallow" because it may return `true` for a composite type whose fields
11561156 /// are not `StructuralPartialEq`. For example, `[T; 4]` has structural equality regardless of `T`
@@ -1160,7 +1160,7 @@ impl<'tcx> Ty<'tcx> {
11601160 #[ inline]
11611161 pub fn is_structural_eq_shallow ( self , tcx : TyCtxt < ' tcx > ) -> bool {
11621162 match self . kind ( ) {
1163- // Look for an impl of `PartialStructuralEq `.
1163+ // Look for an impl of `StructuralPartialEq `.
11641164 ty:: Adt ( ..) => tcx. has_structural_eq_impl ( self ) ,
11651165
11661166 // Primitive types that satisfy `Eq`.
You can’t perform that action at this time.
0 commit comments