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

Remove unstable macro_reexport #49982

Merged
merged 3 commits into from
May 1, 2018
Merged

Remove unstable macro_reexport #49982

merged 3 commits into from
May 1, 2018

Conversation

petrochenkov
Copy link
Contributor

It's subsumed by feature(use_extern_macros) and pub use

cc #35896
closes #29638
closes #38951

@rust-highfive
Copy link
Collaborator

r? @TimNN

(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 15, 2018
Copy link
Contributor

@TimNN TimNN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@petrochenkov: As far as I can tell with my limited knowledge of compiler internals, the changes look good.

Can you ping someone from the compiler team who is more familiar with this area of code, to give this a second look (otherwise I'll ping a random person from the team)?


#[macro_use]
#[macro_reexport(vec, format)]
Copy link
Contributor

@TimNN TimNN Apr 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@petrochenkov: Just to confirm: the existing pub use alloc_crate::vec; below makes both, the module & macro, available?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly.

@@ -310,6 +309,7 @@
#![feature(unboxed_closures)]
#![feature(untagged_unions)]
#![feature(unwind_attributes)]
#![feature(use_extern_macros)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@petrochenkov: How likely are the changes in this file to cause crates to break, e.g. because of an unknown compiler bug? Phrased differently, do you think a crater run would make sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say unlikely.
If all local users of libstd like compiler and test suite build succesfully, then everything should be okay.

@rust-highfive
Copy link
Collaborator

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:00:49] configure: rust.quiet-tests     := True
---
[00:46:46] .................................................................................i..................
[00:46:53] ........................i...........................................................................
---
[00:47:35] ........................i...........................................................................
[00:47:41] i...................................................................................................
[00:47:48] ..............ii....................................................................................
---
[00:48:34] .............................................i......................................................
---
[00:52:30] ..............................i.....................................................................
[00:52:44] ...............................................................i....................................
[00:53:00] .................................................i..................................................
[00:53:20] ....................................................................................................
[00:53:41] ....................................................................................................
[00:54:03] ....................................................................................................
[00:54:28] .....i..............................................................................................
[00:54:56] .i...............................................................................test [run-pass] run-pass/mir_heavy_promoted.rs has been running for over 60 seconds
[00:55:05] ...................
[00:55:36] ....................................................................................................
[00:56:11] ...................................................................ii...............................
[00:56:58] ..............................i....................................................i.ii.test [run-pass] run-pass/saturating-float-casts.rs has been running for over 60 seconds
[00:57:04] ............
[00:57:47] ...........................................................................................iiiiiii..
---
[00:59:59] ...................i............................................................ii.iii..............
[01:00:06] ....................................................................................................
[01:00:15] ........i..............................i............................................................
[01:00:22] ....................................................................................................
[01:00:29] ..........i.........................................................................................
[01:00:37] ....................................................................................................
[01:00:47] ....................................................................................................
[01:00:57] ....................................................................................................
[01:01:08] ....................................................................................................
[01:01:21] ....................................................................................................
[01:01:29] ...i................................................................................................
[01:01:38] .i..ii..............................................................................................
[01:01:49] ....................................................................................................
[01:01:58] ....................................................................................................
[01:02:07] ...................................................................i................................
[01:02:18] .............i......................................................................................
---
[01:02:51] ...........................i........................................................................
[01:02:53] ....................................................................i...............................
[01:02:54] ................i.......................................................
---
[01:03:08] .............i........................
---
[01:03:38] i...i..ii....i.............ii.........iii......i..i...i...ii..i..i..ii.....
---
[01:03:41] i.......i......................i.......
---
[01:04:20] iiii.......i..i........i..i.i.............i..........iiii...........i...i..........ii.i.i.......ii..
[01:04:21] ....ii...
---
$ ls -lat $HOME/Library/Logs/DiagnosticReports/
ls: cannot access /home/travis/Library/Logs/DiagnosticReports/: No such file or directory
travis_time:end:2ac11121:start=1523805080101202249,finish=1523805080115175381,duration=13973132
travis_fold:end:after_failure.2
travis_fold:start:after_failure.3
travis_time:start:05ffa8f7
$ find $HOME/Library/Logs/DiagnosticReports -type f -name '*.crash' -not -name '*.stage2-*.crash' -not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash' -exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \; -exec head -750 {} \; -exec echo travis_fold":"end:crashlog \; || true
find: `/home/travis/Library/Logs/DiagnosticReports': No such file or directory
travis_time:end:05ffa8f7:start=1523805080124210656,finish=1523805080134383991,duration=10173335
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:2264b76c
$ dmesg | grep -i kill
[   10.606288] init: failsafe main process (1093) killed by TERM signal

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)

@kennytm
Copy link
Member

kennytm commented Apr 15, 2018

Actual failure:

[01:09:17] failures:
[01:09:17] 
[01:09:17] ---- [run-pass] run-pass-fulldeps/proc-macro/use-reexport.rs stdout ----
[01:09:17] 	
[01:09:17] error: aux-build `/checkout/src/test/run-pass-fulldeps/proc-macro/auxiliary/derive-reexport.rs` source not found
[01:09:17] thread '[run-pass] run-pass-fulldeps/proc-macro/use-reexport.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:1877:9
[01:09:17] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[01:09:17] 
[01:09:17] 
[01:09:17] failures:
[01:09:17]     [run-pass] run-pass-fulldeps/proc-macro/use-reexport.rs

@petrochenkov
Copy link
Contributor Author

cc @rust-lang/lang
r? someone pursuing stabilization of use_extern_macros, e. g. @withoutboats

@petrochenkov petrochenkov assigned withoutboats and unassigned TimNN Apr 15, 2018
error[E0557]: feature has been removed
--> $DIR/macro-reexport-removed.rs:13:12
|
LL | #![feature(macro_reexport)] //~ ERROR feature has been removed
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably have some note about why the feature was removed and what should be used instead.

@petrochenkov petrochenkov changed the title Remove macro_reexport Remove unstable macro_reexport Apr 16, 2018
@pietroalbini
Copy link
Member

Ping from triage @withoutboats! Can you review this PR?

@cramertj
Copy link
Member

@pietroalbini I believe they're out this week.

r? @alexcrichton maybe?

@alexcrichton
Copy link
Member

Thanks @petrochenkov! r=me once this is ready

@kennytm kennytm added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 24, 2018
@petrochenkov
Copy link
Contributor Author

@bors r=alexcrichton

@bors
Copy link
Contributor

bors commented Apr 29, 2018

📌 Commit 80712bb has been approved by alexcrichton

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 29, 2018
@bors
Copy link
Contributor

bors commented Apr 29, 2018

⌛ Testing commit 80712bbce918960c05ca24fecd0cd1473524499c with merge db96ae2f636b18fab3b95d1f9db7edf848ca17f6...

@bors
Copy link
Contributor

bors commented Apr 29, 2018

💔 Test failed - status-travis

@rust-highfive

This comment has been minimized.

@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 29, 2018
@petrochenkov
Copy link
Contributor Author

@bors r=alexcrichton

@bors
Copy link
Contributor

bors commented May 1, 2018

📌 Commit 730c722 has been approved by alexcrichton

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 1, 2018
@bors
Copy link
Contributor

bors commented May 1, 2018

⌛ Testing commit 730c722 with merge fe8480e9e740cf2e778143b6cacd01450a42cc2d...

@bors
Copy link
Contributor

bors commented May 1, 2018

💔 Test failed - status-travis

@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 May 1, 2018
@rust-highfive

This comment has been minimized.

1 similar comment
@rust-highfive
Copy link
Collaborator

The job dist-x86_64-apple-alt 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:02:49]       Memory: 8 GB
[00:02:49]       Boot ROM Version: VMW71.00V.0.B64.1704110547
[00:02:49]       Apple ROM Info: [MS_VM_CERT/SHA1/27d66596a61c48dd3dc7216fd715126e33f59ae7]Welcome to the Virtual Machine
[00:02:49]       SMC Version (system): 2.8f0
[00:02:49]       Serial Number (system): VMqeZHX62eo+
[00:02:49] 
[00:02:49] hw.ncpu: 4
[00:02:49] hw.byteorder: 1234
[00:02:49] hw.memsize: 8589934592
---
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: s3-us-west-1.amazonaws.com
[00:40:49]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[00:40:49]                                  Dload  Upload   Total   Spent    Left  Speed
[00:40:49] 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: s3-us-west-1.amazonaws.com
[00:40:49] thread 'main' panicked at 'failed to download openssl source: exit code: 6', bootstrap/native.rs:525:17
[00:40:49] failed to run: /Users/travis/build/rust-lang/rust/build/bootstrap/debug/bootstrap build
[00:40:49] Build completed unsuccessfully in 0:35:29
[00:40:49] Build completed unsuccessfully in 0:35:29
[00:40:49] make: *** [all] Error 1

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:11f24250
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
---
travis_fold:start:after_failure.2
travis_time:start:1951e9c9
$ ls -lat $HOME/Library/Logs/DiagnosticReports/
total 0
drwx------+ 15 travis  staff  510 Jan 25 19:20 ..
drwx------   2 travis  staff   68 Dec  6 11:00 .
travis_fold:end:after_failure.2
travis_fold:start:after_failure.3
travis_time:start:28c8e5aa
$ find $HOME/Library/Logs/DiagnosticReports -type f -name '*.crash' -not -name '*.stage2-*.crash' -not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash' -exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \; -exec head -750 {} \; -exec echo travis_fold":"end:crashlog \; || true
$ find $HOME/Library/Logs/DiagnosticReports -type f -name '*.crash' -not -name '*.stage2-*.crash' -not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash' -exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \; -exec head -750 {} \; -exec echo travis_fold":"end:crashlog \; || true
travis_time:end:28c8e5aa:start=1525193800439089000,finish=1525193800463789000,duration=24700000
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:069ea7d7
$ dmesg | grep -i kill
Unable to obtain kernel buffer: Operation not permitted
usage: sudo dmesg
travis_fold:end:after_failure.4

Done. Your build exited with 1.

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)

@petrochenkov
Copy link
Contributor Author

Oh, come on.
@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 May 1, 2018
@bors
Copy link
Contributor

bors commented May 1, 2018

⌛ Testing commit 730c722 with merge 96b09e0...

bors added a commit that referenced this pull request May 1, 2018
Remove unstable `macro_reexport`

It's subsumed by `feature(use_extern_macros)` and `pub use`

cc #35896
closes #29638
closes #38951
@bors
Copy link
Contributor

bors commented May 1, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 96b09e0 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

Src link for re-exported macros are missing. Tracking issue for macro_reexport feature
9 participants