@@ -185,13 +185,13 @@ pub struct BindgenContext<'ctx> {
185
185
186
186
/// The set of (`ItemId`s of) types that can't derive debug.
187
187
///
188
- /// This is populated when we enter codegen by `compute_can_derive_debug `
188
+ /// This is populated when we enter codegen by `compute_cannot_derive_debug `
189
189
/// and is always `None` before that and `Some` after.
190
190
cannot_derive_debug : Option < HashSet < ItemId > > ,
191
191
192
192
/// The set of (`ItemId`s of) types that can't derive default.
193
193
///
194
- /// This is populated when we enter codegen by `compute_can_derive_default `
194
+ /// This is populated when we enter codegen by `compute_cannot_derive_default `
195
195
/// and is always `None` before that and `Some` after.
196
196
cannot_derive_default : Option < HashSet < ItemId > > ,
197
197
@@ -1839,7 +1839,7 @@ impl<'ctx> BindgenContext<'ctx> {
1839
1839
!self . cannot_derive_default . as_ref ( ) . unwrap ( ) . contains ( & id)
1840
1840
}
1841
1841
1842
- /// Compute whether we can derive debug .
1842
+ /// Compute whether we can derive copy .
1843
1843
fn compute_cannot_derive_copy ( & mut self ) {
1844
1844
assert ! ( self . cannot_derive_copy. is_none( ) ) ;
1845
1845
self . cannot_derive_copy = Some ( analyze :: < CannotDeriveCopy > ( self ) ) ;
@@ -1864,7 +1864,7 @@ impl<'ctx> BindgenContext<'ctx> {
1864
1864
!self . cannot_derive_hash . as_ref ( ) . unwrap ( ) . contains ( & id)
1865
1865
}
1866
1866
1867
- /// Compute whether we can derive hash .
1867
+ /// Compute whether we can derive partialeq .
1868
1868
fn compute_cannot_derive_partialeq ( & mut self ) {
1869
1869
assert ! ( self . cannot_derive_partialeq. is_none( ) ) ;
1870
1870
if self . options . derive_partialeq {
@@ -1895,19 +1895,19 @@ impl<'ctx> BindgenContext<'ctx> {
1895
1895
!self . cannot_derive_copy . as_ref ( ) . unwrap ( ) . contains ( & id)
1896
1896
}
1897
1897
1898
- /// Compute whether the type has array.
1898
+ /// Compute whether the type has type parameter in array.
1899
1899
fn compute_has_type_param_in_array ( & mut self ) {
1900
1900
assert ! ( self . has_type_param_in_array. is_none( ) ) ;
1901
1901
self . has_type_param_in_array = Some ( analyze :: < HasTypeParameterInArray > ( self ) ) ;
1902
1902
}
1903
1903
1904
- /// Look up whether the item with `id` has array or not.
1904
+ /// Look up whether the item with `id` has type parameter in array or not.
1905
1905
pub fn lookup_item_id_has_type_param_in_array ( & self , id : & ItemId ) -> bool {
1906
1906
assert ! ( self . in_codegen_phase( ) ,
1907
1907
"We only compute has array when we enter codegen" ) ;
1908
1908
1909
1909
// Look up the computed value for whether the item with `id` has
1910
- // array or not.
1910
+ // type parameter in array or not.
1911
1911
self . has_type_param_in_array . as_ref ( ) . unwrap ( ) . contains ( id)
1912
1912
}
1913
1913
}
0 commit comments