-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Regression in #[allow(deprecated)] for impl Trait
return type
#54045
Comments
Possible. Is the deprecation checker running on HIR? because we now have a HIR existential type item, and I don't think we're copying lint attributes from the function over to it |
cc @Mark-Simulacrum @rust-lang/compiler Beta promotion to stable should happen today... |
Ideally, the HIR would be nested in such a way that the lints implicitly apply to the existential. |
for that we'd either need some form of anonymous modules that fill their items into the outer module, or we'd move the existential type item into the function body (which you were explicitly against), or we'd add a |
This is the closest to a real fix IMO, the path trick is cool but problematic. |
Discussed at T-compiler meeting Some notes:
|
Seems fine to me! |
visited for triage. No change in status; plan of record remains as recorded in my previous comment. |
I'm on it |
The following code compiles on stable but fails to compile on beta and nightly with the warning "use of deprecated item
Deprecated
":Error:
Possibly related to @oli-obk 's refactoring of
impl Trait
?The text was updated successfully, but these errors were encountered: