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

Fix namespace for asm! macro #2

Closed
wants to merge 1 commit into from

Conversation

danbev
Copy link
Member

@danbev danbev commented Oct 29, 2022

This commit removes the feature attribute asm and add a namespace for the usage of the asm macro.

Currently the following build error is generated when using rustc 1.66.0-nightly (c0983a9aa 2022-10-12):

$ cargo b
   Compiling drogue-boot v0.1.2 (/iot/drogue/drogue-boot)
error: cannot find macro `asm` in this scope
   --> src/lib.rs:100:9
    |
100 |         asm! {
    |         ^^^
    |
    = note: consider importing this macro:
            core::arch::asm

warning: the feature `asm` has been stable since 1.59.0 and no longer requires an attribute to enable

 --> src/lib.rs:4:12
  |
4 | #![feature(asm)]
  |            ^^^
  |
  = note: `#[warn(stable_features)]` on by default

warning: `drogue-boot` (lib) generated 1 warning
error: could not compile `drogue-boot` due to previous error; 1 warning emitted

Refs: rust-lang/rust#84019

Signed-off-by: Daniel Bevenius [email protected]

This commit removes the feature attribute asm and add a namespace for
the usage of the asm macro.

Currently the following build error is generated when using
rustc 1.66.0-nightly (c0983a9aa 2022-10-12):

$ cargo b
   Compiling drogue-boot v0.1.2 (/iot/drogue/drogue-boot)
error: cannot find macro `asm` in this scope
   --> src/lib.rs:100:9
    |
100 |         asm! {
    |         ^^^
    |
    = note: consider importing this macro:
            core::arch::asm

warning: the feature `asm` has been stable since 1.59.0 and no longer
requires an attribute to enable

 --> src/lib.rs:4:12
  |
4 | #![feature(asm)]
  |            ^^^
  |
  = note: `#[warn(stable_features)]` on by default

warning: `drogue-boot` (lib) generated 1 warning
error: could not compile `drogue-boot` due to previous error; 1 warning emitted

Refs: rust-lang/rust#84019

Signed-off-by: Daniel Bevenius <[email protected]>
@danbev
Copy link
Member Author

danbev commented Oct 29, 2022

Sorry about this, I was supposed to look at embassy-boot and not this repo.

@danbev danbev closed this Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant