-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Deprecate Expr::Wildcard
#14959
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
Deprecate Expr::Wildcard
#14959
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me -- thank you @linhr and @shehabgamin
// TODO: remove the next line after `Expr::Wildcard` is removed | ||
#[allow(deprecated)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if you use expect(deprecated)
here and below rather than allow(deprecated)
the compiler will warn / error once we remove Expr::Wildcard (this is a trick I learned from @itsjunetime )
// TODO: remove the next line after `Expr::Wildcard` is removed | |
#[allow(deprecated)] | |
#[expect(deprecated)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @alamb! I've changed #[allow(deprecated)]
to #[expect(deprecated)]
in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept the TODO comment in a few places to provide more context, when Expr::Wildcard
is not directly referred to in the line following #[expect(deprecated)]
.
I plan to make a PR to backport this change to |
Co-authored-by: Andrew Lamb <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
* Deprecate `Expr::Wildcard` * Update Co-authored-by: Andrew Lamb <[email protected]> * Update --------- Co-authored-by: Andrew Lamb <[email protected]>
* Deprecate `Expr::Wildcard` * Update * Update --------- Co-authored-by: Heran Lin <[email protected]> Co-authored-by: Andrew Lamb <[email protected]>
Which issue does this PR close?
N/A
Rationale for this change
This is discussed as part of #14123.
What changes are included in this PR?
Expr::Wildcard
is marked as deprecated.Are these changes tested?
N/A
Are there any user-facing changes?
N/A