-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 verify.rs #38029
Fix verify.rs #38029
Conversation
use syntax::ast::Name; is a reexport of syntax::symbol::Symbol(u32);
(rust_highfive has picked a reviewer for you, use r? to override) |
pub fn invalid() -> Self { | ||
Symbol(0u32) | ||
} | ||
|
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 had to create this method because Symbol.0
is private. Is this ok?
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.
Symbol(0)
is already available as keywords::Invalid
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.
keywords::Invalid.name()
to be precise
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.
ah, thank you 😄
@bors r+ rollup |
📌 Commit 28b64dc has been approved by |
Fix verify.rs Finishing d2f8fb0 from @jseyfried
Fix verify.rs Finishing d2f8fb0 from @jseyfried
Finishing d2f8fb0 from @jseyfried