Make asm_experimental_arch work in allow_internal_unstable macros#150073
Make asm_experimental_arch work in allow_internal_unstable macros#150073bors merged 1 commit intorust-lang:mainfrom
asm_experimental_arch work in allow_internal_unstable macros#150073Conversation
|
r? @nnethercote rustbot has assigned @nnethercote. Use |
There was a problem hiding this comment.
I have some questions.
- What's the motivation for this? Did it come up in a particular real-world context?
- Presumably targets with stable
asm!/global_asm!are unaffected by this? - The PR description mentions proc macros, but the test uses a declarative macro. Why is this?
I'm also wondering if this will need some kind of libs/lang approval.
Yes, we are planning to use this in Currently we encode a bunch of information in really strange ways into the Wasm module and we are planning to make the next version of
Yes, this only affects targets requiring
The mechanism is the same, I've double-checked by trying it out locally. Happy to add a dedicated proc-macro test! |
|
No need to add a proc macro test. I'll just check on Zulip if we need any kind of libs/lang sign-off, otherwise this looks ok to me. |
|
@Noratrieb and @Amanieu both said on Zulip this doesn't need any additional approvals, so we're good to go. Happy new year. @bors r+ |
Rollup merge of #150073 - daxpedda:internal-unstable-asm-experimental-arch, r=nnethercote Make `asm_experimental_arch` work in `allow_internal_unstable` macros This change makes it possible to use unstable `asm!`, usually requiring `feature(asm_experimental_arch)`, in proc-macros with the `allow_internal_unstable` attribute. The test was added on a target where `asm!` is unstable: Wasm. However, this affects *any* target with an unstable `asm!` implementation.
|
@bors retry r- (sync) |
This change makes it possible to use unstable
asm!, usually requiringfeature(asm_experimental_arch), in proc-macros with theallow_internal_unstableattribute.The test was added on a target where
asm!is unstable: Wasm. However, this affects any target with an unstableasm!implementation.