@@ -180,7 +180,7 @@ pub struct BindgenContext<'ctx> {
180
180
///
181
181
/// This is populated when we enter codegen by `compute_can_derive_debug`
182
182
/// and is always `None` before that and `Some` after.
183
- cant_derive_debug : Option < HashSet < ItemId > > ,
183
+ cannot_derive_debug : Option < HashSet < ItemId > > ,
184
184
185
185
/// The set of (`ItemId`s of) types that can't derive default.
186
186
///
@@ -318,7 +318,7 @@ impl<'ctx> BindgenContext<'ctx> {
318
318
used_template_parameters : None ,
319
319
need_bitfield_allocation : Default :: default ( ) ,
320
320
needs_mangling_hack : needs_mangling_hack,
321
- cant_derive_debug : None ,
321
+ cannot_derive_debug : None ,
322
322
cannot_derive_default : None ,
323
323
have_vtable : None ,
324
324
} ;
@@ -793,7 +793,7 @@ impl<'ctx> BindgenContext<'ctx> {
793
793
794
794
self . compute_has_vtable ( ) ;
795
795
self . find_used_template_parameters ( ) ;
796
- self . compute_cant_derive_debug ( ) ;
796
+ self . compute_cannot_derive_debug ( ) ;
797
797
self . compute_cannot_derive_default ( ) ;
798
798
799
799
let ret = cb ( self ) ;
@@ -1762,9 +1762,9 @@ impl<'ctx> BindgenContext<'ctx> {
1762
1762
}
1763
1763
1764
1764
/// Compute whether we can derive debug.
1765
- fn compute_cant_derive_debug ( & mut self ) {
1766
- assert ! ( self . cant_derive_debug . is_none( ) ) ;
1767
- self . cant_derive_debug = Some ( analyze :: < CannotDeriveDebug > ( self ) ) ;
1765
+ fn compute_cannot_derive_debug ( & mut self ) {
1766
+ assert ! ( self . cannot_derive_debug . is_none( ) ) ;
1767
+ self . cannot_derive_debug = Some ( analyze :: < CannotDeriveDebug > ( self ) ) ;
1768
1768
}
1769
1769
1770
1770
/// Look up whether the item with `id` can
@@ -1775,7 +1775,7 @@ impl<'ctx> BindgenContext<'ctx> {
1775
1775
1776
1776
// Look up the computed value for whether the item with `id` can
1777
1777
// derive debug or not.
1778
- !self . cant_derive_debug . as_ref ( ) . unwrap ( ) . contains ( & id)
1778
+ !self . cannot_derive_debug . as_ref ( ) . unwrap ( ) . contains ( & id)
1779
1779
}
1780
1780
1781
1781
/// Compute whether we can derive default.
0 commit comments