0.29.0 compile warning
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3k
- Forks
- 386
- Avg merge
- 1h 43m
- Merged PRs (30d)
- 1
Description
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)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/bindgen/ir/cfg.rs:19 and review the load function signature alongside the compiler suggestion. Run cargo fix --lib -p cbindgen or the relevant build, then confirm the cbindgen library and binary compile without the mismatched lifetime syntax warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100