Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing explicit lifetime name for copy_deferred_lighting_id name #10128

Merged

Conversation

ShadowMitia
Copy link
Contributor

Objective

On nightly there is a warning on a missing lifetime:

warning: `&` without an explicit lifetime name cannot be used here

The details are in rust-lang/rust#115010, but the bottom line is that in associated constants elided lifetimes are no longer allowed to be implicitly defined.

This fixes the only place where it is missing.

Solution

  • Add explicit 'static lifetime

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen C-Code-Quality A section of code that is hard to understand or change S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it labels Oct 15, 2023
@superdump superdump added this pull request to the merge queue Oct 15, 2023
Merged via the queue into bevyengine:main with commit 56eb362 Oct 15, 2023
@ShadowMitia ShadowMitia deleted the core_pipeline_explicit_lifetime branch October 15, 2023 14:57
@ShadowMitia ShadowMitia restored the core_pipeline_explicit_lifetime branch October 15, 2023 15:40
ameknite pushed a commit to ameknite/bevy that referenced this pull request Nov 6, 2023
…bevyengine#10128)

# Objective

On nightly there is a warning on a missing lifetime:

```bash
warning: `&` without an explicit lifetime name cannot be used here
```

The details are in rust-lang/rust#115010, but
the bottom line is that in associated constants elided lifetimes are no
longer allowed to be implicitly defined.

This fixes the only place where it is missing.

## Solution

- Add explicit `'static` lifetime
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
…bevyengine#10128)

# Objective

On nightly there is a warning on a missing lifetime:

```bash
warning: `&` without an explicit lifetime name cannot be used here
```

The details are in rust-lang/rust#115010, but
the bottom line is that in associated constants elided lifetimes are no
longer allowed to be implicitly defined.

This fixes the only place where it is missing.

## Solution

- Add explicit `'static` lifetime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Code-Quality A section of code that is hard to understand or change S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants