-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Match against attribute name when validating attributes #84091
Conversation
Extract attribute name once and match it against symbols that are being validated, instead of using `Session::check_name` for each symbol individually. Assume that all validated attributes are used, instead of marking them as such, since the attribute check should be exhaustive.
r? @davidtwco (rust-highfive has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 985ae0b with merge 036cdad2e25b454b350ae4ca23bc0dc4f57dc093... |
☀️ Try build successful - checks-actions |
Queued 036cdad2e25b454b350ae4ca23bc0dc4f57dc093 with parent 58f32da, future comparison URL. |
In order to make this even more exhaustive, you could even iterate on all the attributes directly instead of visiting. |
Finished benchmarking try commit (036cdad2e25b454b350ae4ca23bc0dc4f57dc093): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
@bors r+ |
📌 Commit 985ae0b has been approved by |
⌛ Testing commit 985ae0b with merge 1519ff3c75ad405fe39169328e382b4280ca8ca0... |
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
@bors retry |
☀️ Test successful - checks-actions |
Extract attribute name once and match it against symbols that are being
validated, instead of using
Session::check_name
for each symbolindividually.
Assume that all validated attributes are used, instead of marking them
as such, since the attribute check should be exhaustive.