Fix mismatched_lifetime_syntaxes warning#656
Merged
sagudev merged 5 commits intoservo:mainfrom Mar 19, 2026
Merged
Conversation
sagudev
reviewed
Nov 12, 2025
sagudev
approved these changes
Nov 12, 2025
Member
sagudev
left a comment
There was a problem hiding this comment.
LGTM, although I prefer explicit lifetimes (even if '_). everywhere.
bd7e2cb to
8300852
Compare
jschwe
commented
Nov 18, 2025
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
a7d6b39 to
5ed3daa
Compare
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
5ed3daa to
36003d1
Compare
sagudev
reviewed
Mar 18, 2026
mozjs/src/gc/custom.rs
Outdated
| } | ||
|
|
||
| pub fn handle_mut(&mut self) -> MutableHandle<T> | ||
| pub fn handle_mut(&'a mut self) -> MutableHandle<'a, T> |
Member
There was a problem hiding this comment.
I think this is wrong, we should use separate lifetime.
Member
Author
There was a problem hiding this comment.
hmm, I think you are right. Wouldn't that mean that the regular handle functions should also be '_ and not 'a?
Member
There was a problem hiding this comment.
Member
Author
There was a problem hiding this comment.
Can I do this in a follow-up to keep this one scoped to pure warning-fixes?
Member
There was a problem hiding this comment.
I am not really 100% sure we need 'a: 'b part TBH. Its just something I want to bring attention to. This will need more investigation.
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
sagudev
reviewed
Mar 18, 2026
Co-authored-by: Sam <16504129+sagudev@users.noreply.github.com> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
sagudev
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #652
Not sure if this fixes all instances, since there are still many bindgen related warnings polluting the output, where I can't seem to find the option that can silence them.