@@ -373,7 +373,7 @@ pub struct BindgenContext {
373
373
options : BindgenOptions ,
374
374
375
375
/// Whether a bindgen complex was generated
376
- generated_bindegen_complex : Cell < bool > ,
376
+ generated_bindgen_complex : Cell < bool > ,
377
377
378
378
/// The set of `ItemId`s that are whitelisted. This the very first thing
379
379
/// computed after parsing our IR, and before running any of our analyses.
@@ -597,7 +597,7 @@ impl BindgenContext {
597
597
translation_unit,
598
598
target_info,
599
599
options,
600
- generated_bindegen_complex : Cell :: new ( false ) ,
600
+ generated_bindgen_complex : Cell :: new ( false ) ,
601
601
whitelisted : None ,
602
602
codegen_items : None ,
603
603
used_template_parameters : None ,
@@ -1538,7 +1538,7 @@ impl BindgenContext {
1538
1538
///
1539
1539
/// Note that `declaration_id` is not guaranteed to be in the context's item
1540
1540
/// set! It is possible that it is a partial type that we are still in the
1541
- /// middle of parsign .
1541
+ /// middle of parsing .
1542
1542
fn get_declaration_info_for_template_instantiation (
1543
1543
& self ,
1544
1544
instantiation : & Cursor ,
@@ -1914,7 +1914,7 @@ impl BindgenContext {
1914
1914
/// Make a new item that is a resolved type reference to the `wrapped_id`.
1915
1915
///
1916
1916
/// This is unfortunately a lot of bloat, but is needed to properly track
1917
- /// constness et. al.
1917
+ /// constness et al.
1918
1918
///
1919
1919
/// We should probably make the constness tracking separate, so it doesn't
1920
1920
/// bloat that much, but hey, we already bloat the heck out of builtin
@@ -2384,14 +2384,14 @@ impl BindgenContext {
2384
2384
}
2385
2385
}
2386
2386
2387
- /// Call if a binden complex is generated
2388
- pub fn generated_bindegen_complex ( & self ) {
2389
- self . generated_bindegen_complex . set ( true )
2387
+ /// Call if a bindgen complex is generated
2388
+ pub fn generated_bindgen_complex ( & self ) {
2389
+ self . generated_bindgen_complex . set ( true )
2390
2390
}
2391
2391
2392
- /// Whether we need to generate the binden complex type
2393
- pub fn need_bindegen_complex_type ( & self ) -> bool {
2394
- self . generated_bindegen_complex . get ( )
2392
+ /// Whether we need to generate the bindgen complex type
2393
+ pub fn need_bindgen_complex_type ( & self ) -> bool {
2394
+ self . generated_bindgen_complex . get ( )
2395
2395
}
2396
2396
2397
2397
/// Compute whether we can derive debug.
@@ -2563,7 +2563,7 @@ impl BindgenContext {
2563
2563
self . options ( ) . no_copy_types . matches ( & name)
2564
2564
}
2565
2565
2566
- /// Chech if `--no-hash` flag is enabled for this item.
2566
+ /// Check if `--no-hash` flag is enabled for this item.
2567
2567
pub fn no_hash_by_name ( & self , item : & Item ) -> bool {
2568
2568
let name = item. canonical_path ( self ) [ 1 ..] . join ( "::" ) ;
2569
2569
self . options ( ) . no_hash_types . matches ( & name)
0 commit comments