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

Stabilize tool_attributes #52982

Closed
wants to merge 2 commits into from
Closed

Stabilize tool_attributes #52982

wants to merge 2 commits into from

Conversation

mominul
Copy link
Contributor

@mominul mominul commented Aug 2, 2018

Stabilize tool_attributes feature! 🎉

cc #44690
r? @nrc

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nrc (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 2, 2018
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-5.0 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:46:58] ....................................................................................................
[00:47:01] ....................................................................................................
[00:47:04] ...........................................................................................i........
[00:47:07] ...................................................ii.iii...........................................
[00:47:10] ........................................................................F...........i...............
[00:47:16] ....................................................................................................
[00:47:19] .............................................................i......................................
[00:47:21] ........................................................i..ii.......................................
[00:47:24] ....................................................................................................
[00:47:24] ....................................................................................................
[00:47:27] ....................................................................................................
[00:47:29] ....................................................................................................
[00:47:32] ........................................i...........................................................
[00:47:35] ....................................................................................................
[00:47:37] ....................................................................................................
[00:47:39] ..............................F.....................................................................
[00:47:42] failures:
[00:47:42] 
[00:47:42] ---- [compile-fail] compile-fail/feature-gate-tool_attributes.rs stdout ----
[00:47:42] 
[00:47:42] 
[00:47:42] error: compile-fail test compiled successfully!
[00:47:42] status: exit code: 0
[00:47:42] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/compile-fail/feature-gate-tool_attributes.rs" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/compile-fail/feature-gate-tool_attributes/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/compile-fail/feature-gate-tool_attributes/auxiliary" "-A" "unused"
[00:47:42] ------------------------------------------
[00:47:42] 
[00:47:42] ------------------------------------------
[00:47:42] stderr:
---
[00:47:42] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[00:47:42] 
[00:47:42] ---- [compile-fail] compile-fail/unknown_tool_attributes-1.rs stdout ----
[00:47:42] 
[00:47:42] error: /checkout/src/test/compile-fail/unknown_tool_attributes-1.rs:15: expected error not found: scoped attribute `foo::bar` is experimental (see issue #44690) [E0658]
[00:47:42] error: 0 unexpected errors found, 1 expected errors not found
[00:47:42] status: exit code: 1
[00:47:42] status: exit code: 1
[00:47:42] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/compile-fail/unknown_tool_attributes-1.rs" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/compile-fail/unknown_tool_attributes-1/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/compile-fail/unknown_tool_attributes-1/auxiliary" "-A" "unused"
[00:47:42]     Error {
[00:47:42]         line_num: 15,
[00:47:42]         kind: Some(
[00:47:42]             Error
[00:47:42]             Error
[00:47:42]         ),
[00:47:42]         msg: "scoped attribute `foo::bar` is experimental (see issue #44690) [E0658]"
[00:47:42] ]
[00:47:42] 
[00:47:42] thread '[compile-fail] compile-fail/unknown_tool_attributes-1.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:1285:13
[00:47:42] 
---
[00:47:42] 
[00:47:42] thread 'main' panicked at 'Some tests failed', tools/compiletest/src/main.rs:498:22
[00:47:42] 
[00:47:42] 
[00:47:42] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/compile-fail" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/compile-fail" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "compile-fail" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-5.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Zunstable-options " "--target-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "5.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:47:42] 
[00:47:42] 
[00:47:42] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[00:47:42] Build completed unsuccessfully in 0:08:36
[00:47:42] Build completed unsuccessfully in 0:08:36
[00:47:42] Makefile:58: recipe for target 'check' failed
[00:47:42] make: *** [check] Error 1

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:1567a2c6
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@alexcrichton
Copy link
Member

Thanks for the PR! This is currently blocked on #50911 landing first, so I'm gonna mark this as S-blocked

@alexcrichton alexcrichton added S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 2, 2018
@nrc
Copy link
Member

nrc commented Aug 8, 2018

Looks like there are still some tests which need removing or changing. Do we have docs for this feature?

@mominul
Copy link
Contributor Author

mominul commented Aug 9, 2018

I have fixed the compile-fail testing issue and I can run the whole compile-fail test suite locally. I will resolve these conflicts when the blocking PR is merged.

@TimNN
Copy link
Contributor

TimNN commented Aug 28, 2018

Ping from triage @mominul: The blocking PR has been merged, however this PR requires a rebase.

@TimNN TimNN added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. labels Aug 28, 2018
@mominul
Copy link
Contributor Author

mominul commented Aug 28, 2018

I think this feature already has been stabilized by #53459, am I wrong?

@TimNN
Copy link
Contributor

TimNN commented Aug 28, 2018

I think this feature already has been stabilized by #53459, am I wrong?

No, it looks like you are quite correct!

@nrc nrc closed this Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants