-
Notifications
You must be signed in to change notification settings - Fork 129
Open
Description
When compiling mozjs with stable rust mismatched_lifetime_syntaxes is now warn by default.
warning: hiding a lifetime that's elided elsewhere is confusing
--> mozjs/src/gc/collections.rs:128:19
|
128 | pub fn handle(&self) -> Handle<T> {
| ^^^^^ ^^^^^^^^^ 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
|
128 | pub fn handle(&self) -> Handle<'_, T> {
| +++
To reproduce:
cargo +stable build
Metadata
Metadata
Assignees
Labels
No labels