Skip to content

0.29.0 compile warning #1121

@satmandu

Description

@satmandu
Compiling cbindgen v0.29.0 (/usr/local/tmp/crew/cbindgen.20251109144127.dir)
warning: hiding a lifetime that's elided elsewhere is confusing                                                                                                        
  --> src/bindgen/ir/cfg.rs:19:18
   |                                   
19 |     fn load(key: &str) -> DefineKey {             
   |                  ^^^^     ^^^^^^^^^ the same lifetime is hidden here
   |                  |                                                                                                                                                
   |                  the lifetime is elided here
   |                                                                               
   = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
   = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths                                                      
   |                            
19 |     fn load(key: &str) -> DefineKey<'_> {
   |                                    ++++      
                                         
warning: `cbindgen` (lib) generated 1 warning (run `cargo fix --lib -p cbindgen` to apply 1 suggestion)
CCwarning: `cbindgen` (bin "cbindgen") generated 1 warning (1 duplicate) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions