Add new unstable attribute: #[export_visibility = ...].#151431
Add new unstable attribute: #[export_visibility = ...].#151431anforowicz wants to merge 3 commits intorust-lang:mainfrom
#[export_visibility = ...].#151431Conversation
|
Some changes occurred in compiler/rustc_hir/src/attrs cc @jdonszelmann, @JonathanBrouwer Some changes occurred in compiler/rustc_passes/src/check_attr.rs cc @jdonszelmann, @JonathanBrouwer Some changes occurred in compiler/rustc_attr_parsing |
|
r? @chenyukang rustbot has assigned @chenyukang. Use |
|
i had a quick look, mostly looks good, but i'd like to maybe @JonathanBrouwer take a look on this as well, i may overlooked something r? JonathanBrouwer |
|
Would like to take a look, will do so tomorrow :) |
This comment has been minimized.
This comment has been minimized.
|
Reminder, once the PR becomes ready for a review, use |
2043b51 to
8dc8f60
Compare
This comment has been minimized.
This comment has been minimized.
8dc8f60 to
6ccbf57
Compare
88ddd87 to
a741ebc
Compare
a741ebc to
aa26225
Compare
This comment has been minimized.
This comment has been minimized.
8a51a4b to
6441282
Compare
This comment has been minimized.
This comment has been minimized.
|
Reopened to retrigger CI |
This comment has been minimized.
This comment has been minimized.
Add new unstable attribute: `#[export_visibility = ...]`. try-job: x86_64-msvc-1 try-job: i686-msvc-1 try-job: x86_64-mingw-1 try-job: test-various try-job: armhf-gnu try-job: aarch64-apple try-job: x86_64-gnu-llvm-20-3
This comment has been minimized.
This comment has been minimized.
|
💔 Test for ae11d92 failed: CI. Failed job:
|
This seems to be caused by this PR - I'll have to take a look: |
|
Looks like the failure was on wasm32-wasip1. Testing locally that should support dylibs, at least rustc doesn't complain, but it emits with a If you could add a commit doing that then we can run the try job, though @jieyouxu should probably double check. |
|
Indeed it seems like non-emscripten non-wali wasm should be using rust/library/std/src/sys/env_consts.rs Lines 370 to 379 in c58d9f9 |
|
The run-make-support library was changed cc @jieyouxu |
3b58dc9 to
ea1d9d1
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Ack. Done. I also had to enable the And I also had to tweak test expectations in the new rmake test - it seems that Wasm symbols are always non-exported even without |
|
@bors try jobs=test-various
I think this might just be how wasm object files are reported, but I'm not sure. @alexcrichton is the target maintainer and would probably know best what the behavior for wasm should be here. |
This comment has been minimized.
This comment has been minimized.
Add new unstable attribute: `#[export_visibility = ...]`. try-job: test-various
|
💔 Test for 814edc7 failed: CI. Failed job:
|
This comment has been minimized.
This comment has been minimized.
|
|
Thanks! I think you are referring to gimli-rs/object#471. I think for this PR we have 2 options:
Any feedback? |
Not quite. That is for wasm relocatable object files. The issue in this PR is that also for linked wasm modules exports aren't listed. |
|
I can repro the test failures from #151431 (comment) by running I can fix I don't know how to fix Maybe I should consider adding |
Hmmm... actually, I guess I can define a no-op panic handler. But this still makes the test fail when targeting The test probably needs to skip/ignore this target architecture, but I am not quite sure how to accomplish this (after skimming through https://rustc-dev-guide.rust-lang.org/tests/directives.html?highlight=%40ignore#controlling-when-tests-are-run)... :-/ |
FWIW |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
For wasm what I'd recommend, assuming you're ok with it, is to indeed skip this test on wasm. I think it'd be best to discuss the wasm-specific parts in a follow-up issue perhaps which tracks the wasm testing for this and what would be necessary for that. |
This PR is an implementation of the RFC tracked in #151425