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

Compilation failing on nightly-2022-03-28 and newer for users of pin_alias! macro #600

Closed
TDHolmes opened this issue Apr 1, 2022 · 2 comments

Comments

@TDHolmes
Copy link
Contributor

TDHolmes commented Apr 1, 2022

To reproduce:

  1. rustup default nightly-2022-03-28 && rustup target add thumbv6m-none-eabi
  2. cd atsamd/boards/feather_m0
  3. cargo check --example=blinky_basic

I expect this to compile properly like on stable, instead it fails to compile with:

error: no rules expected the token `red_led`
  --> examples/blinky_basic.rs:30:52
   |
30 |     let mut red_led: bsp::RedLed = pin_alias!(pins.red_led).into();
   |                                                    ^^^^^^^ no rules expected this token in macro call

rust issue: rust-lang/rust#95569

@TDHolmes
Copy link
Contributor Author

TDHolmes commented Apr 2, 2022

Rust issue closed, should be available in tomorrow's nightly

@TDHolmes
Copy link
Contributor Author

TDHolmes commented Apr 4, 2022

CI now passes on latest nightly 🎉

@TDHolmes TDHolmes closed this as completed Apr 4, 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

No branches or pull requests

1 participant