Skip to content
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

Merged
merged 1 commit into from
Apr 19, 2021

Conversation

tmiasko
Copy link
Contributor

@tmiasko tmiasko commented Apr 11, 2021

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.

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.
@rust-highfive
Copy link
Collaborator

r? @davidtwco

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 11, 2021
@tmiasko
Copy link
Contributor Author

tmiasko commented Apr 11, 2021

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Apr 11, 2021
@bors
Copy link
Contributor

bors commented Apr 11, 2021

⌛ Trying commit 985ae0b with merge 036cdad2e25b454b350ae4ca23bc0dc4f57dc093...

@bors
Copy link
Contributor

bors commented Apr 11, 2021

☀️ Try build successful - checks-actions
Build commit: 036cdad2e25b454b350ae4ca23bc0dc4f57dc093 (036cdad2e25b454b350ae4ca23bc0dc4f57dc093)

@rust-timer
Copy link
Collaborator

Queued 036cdad2e25b454b350ae4ca23bc0dc4f57dc093 with parent 58f32da, future comparison URL.

@cjgillot
Copy link
Contributor

In order to make this even more exhaustive, you could even iterate on all the attributes directly instead of visiting.

@rust-timer
Copy link
Collaborator

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 rollup- to bors.

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
@rustbot label: +S-waiting-on-review -S-waiting-on-perf

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Apr 11, 2021
@davidtwco
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Apr 19, 2021

📌 Commit 985ae0b has been approved by davidtwco

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 19, 2021
@bors
Copy link
Contributor

bors commented Apr 19, 2021

⌛ Testing commit 985ae0b with merge 1519ff3c75ad405fe39169328e382b4280ca8ca0...

@rust-log-analyzer
Copy link
Collaborator

The job dist-aarch64-apple failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
      Memory: 14 GB
      Boot ROM Version: VMW71.00V.13989454.B64.1906190538
      Apple ROM Info: [MS_VM_CERT/SHA1/27d66596a61c48dd3dc7216fd715126e33f59ae7]Welcome to the Virtual Machine
      SMC Version (system): 2.8f0
      Serial Number (system): VM0dTlwGiAKN

hw.ncpu: 3
hw.byteorder: 1234
hw.memsize: 15032385536
---
[  8%] Building CXX object Common/CMakeFiles/lldCommon.dir/Args.cpp.o
error: Connection to server timed outerror: error: Connection to server timed out
Connection to server timed out

make[2]: *** [lib/Core/CMakeFiles/lldCore.dir/Error.cpp.o] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [lib/Core/CMakeFiles/lldCore.dir/DefinedAtom.cpp.o] Error 2
make[2]: *** [Common/CMakeFiles/lldCommon.dir/Args.cpp.o] Error 2
make[1]: *** [Common/CMakeFiles/lldCommon.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [lib/Core/CMakeFiles/lldCore.dir/all] Error 2
make: *** [all] Error 2
command did not execute successfully, got: exit code: 2


build script failed, must exit now', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.44/src/lib.rs:885:5
 finished in 21.022 seconds
failed to run: /Users/runner/work/rust/rust/build/bootstrap/debug/bootstrap dist --stage 2
Build completed unsuccessfully in 1:44:08

@bors
Copy link
Contributor

bors commented Apr 19, 2021

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Apr 19, 2021
@Aaron1011
Copy link
Member

@bors retry

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 19, 2021
@bors
Copy link
Contributor

bors commented Apr 19, 2021

⌛ Testing commit 985ae0b with merge 1a6c98e...

@bors
Copy link
Contributor

bors commented Apr 19, 2021

☀️ Test successful - checks-actions
Approved by: davidtwco
Pushing 1a6c98e to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 19, 2021
@bors bors merged commit 1a6c98e into rust-lang:master Apr 19, 2021
@rustbot rustbot added this to the 1.53.0 milestone Apr 19, 2021
@tmiasko tmiasko deleted the check-attrs-sym branch April 20, 2021 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants