Skip to content

webxr: Fix compile warning for Windows after upgrade to rustc 1.89#38780

Merged
sagudev merged 1 commit intoservo:mainfrom
yezhizhen:fix-compile-warning
Aug 19, 2025
Merged

webxr: Fix compile warning for Windows after upgrade to rustc 1.89#38780
sagudev merged 1 commit intoservo:mainfrom
yezhizhen:fix-compile-warning

Conversation

@yezhizhen
Copy link
Copy Markdown
Member

This is a follow up to #36818 (comment). Since openxr is a feature only available on Windows, it was omitted.

Testing: Fixes

warning: hiding a lifetime that's elided elsewhere is confusing
   --> components\webxr\openxr\input.rs:366:9
    |
366 |         &self,
    |         ^^^^^ the lifetime is elided here
...
371 |     ) -> Vec<Binding> {
    |              ------- the same lifetime is hidden 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
    |
371 |     ) -> Vec<Binding<'_>> {

Signed-off-by: Euclid Ye <[email protected]>
@yezhizhen yezhizhen requested a review from sagudev August 19, 2025 13:13
@sagudev sagudev enabled auto-merge August 19, 2025 13:14
@mrobinson mrobinson changed the title cargo: Fix compile warning for Windows after upgrade to rustc 1.89 webxr: Fix compile warning for Windows after upgrade to rustc 1.89 Aug 19, 2025
@sagudev sagudev added this pull request to the merge queue Aug 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 19, 2025
@sagudev sagudev added this pull request to the merge queue Aug 19, 2025
Merged via the queue into servo:main with commit ad3018a Aug 19, 2025
23 checks passed
@yezhizhen yezhizhen deleted the fix-compile-warning branch August 19, 2025 15:06
PotatoCP pushed a commit to PotatoCP/servo that referenced this pull request Aug 20, 2025
…ervo#38780)

This is a follow up to
servo#36818 (comment). Since
openxr is a feature only available on Windows, it was omitted.

Testing: Fixes
```
warning: hiding a lifetime that's elided elsewhere is confusing
   --> components\webxr\openxr\input.rs:366:9
    |
366 |         &self,
    |         ^^^^^ the lifetime is elided here
...
371 |     ) -> Vec<Binding> {
    |              ------- the same lifetime is hidden 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
    |
371 |     ) -> Vec<Binding<'_>> {
```

Signed-off-by: Euclid Ye <[email protected]>
PotatoCP pushed a commit to PotatoCP/servo that referenced this pull request Aug 20, 2025
…ervo#38780)

This is a follow up to
servo#36818 (comment). Since
openxr is a feature only available on Windows, it was omitted.

Testing: Fixes
```
warning: hiding a lifetime that's elided elsewhere is confusing
   --> components\webxr\openxr\input.rs:366:9
    |
366 |         &self,
    |         ^^^^^ the lifetime is elided here
...
371 |     ) -> Vec<Binding> {
    |              ------- the same lifetime is hidden 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
    |
371 |     ) -> Vec<Binding<'_>> {
```

Signed-off-by: Euclid Ye <[email protected]>
PotatoCP pushed a commit to PotatoCP/servo that referenced this pull request Aug 20, 2025
…ervo#38780)

This is a follow up to
servo#36818 (comment). Since
openxr is a feature only available on Windows, it was omitted.

Testing: Fixes
```
warning: hiding a lifetime that's elided elsewhere is confusing
   --> components\webxr\openxr\input.rs:366:9
    |
366 |         &self,
    |         ^^^^^ the lifetime is elided here
...
371 |     ) -> Vec<Binding> {
    |              ------- the same lifetime is hidden 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
    |
371 |     ) -> Vec<Binding<'_>> {
```

Signed-off-by: Euclid Ye <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants