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 single_use_lifetimes in Masonry #744

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PoignardAzur
Copy link
Contributor

No description provided.

@DJMcNab DJMcNab changed the title Remove single_use_lifetimes lint Fix single_use_lifetimes in Masonry Nov 12, 2024
@@ -15,6 +15,10 @@ pub struct UnitPoint {
v: f64,
}

#[expect(
single_use_lifetimes,
reason = "Anonymous lifetimes in `impl Trait` are unstable"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we link to the rustc issue for this lint false positive here?

Copy link
Contributor Author

@PoignardAzur PoignardAzur Nov 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can see, there's no tracking issue and no documentation beside https://dev-doc.rust-lang.org/unstable-book/language-features/anonymous-lifetime-in-impl-trait.html

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. rust-lang/rust#129255 was the first result for single_use_lifetimes in rust-lang/rust.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, right, I looked for the wrong thing.

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