-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Edition 2024 now reports: argument requires that '1
must outlive 'static
#133529
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
Comments
I presume you didn't run |
I'm pretty sure these If you did run |
I've cloned your project and executed |
After the Closing as user error. Please see also https://doc.rust-lang.org/edition-guide/editions/transitioning-an-existing-project-to-a-new-edition.html |
I did run this but found too many Though it's a user error, the error message given by the compiler can be improved? |
I finished the migration by changing to the new
Is it possible to add a |
I'm trying to test edition 2024 here by using branch https://github.com/bytedance/g3/tree/edition-2024, now some of the code reports
The toolchain version is
Code
The code is here: https://github.com/bytedance/g3, branch edition-2024.
will give error at line https://github.com/bytedance/g3/blob/40d1e2e5946e701deb0a26d2e8342120a2fb89f5/lib/g3-ctl/src/opts.rs#L92
And
will give error at line https://github.com/bytedance/g3/blob/40d1e2e5946e701deb0a26d2e8342120a2fb89f5/lib/g3-daemon/src/control/local/mod.rs#L174
Version it worked on
Edition 2021
The text was updated successfully, but these errors were encountered: