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

build error on #![rustfmt::skip] #52

Closed
dwarburt opened this issue Oct 27, 2020 · 7 comments
Closed

build error on #![rustfmt::skip] #52

dwarburt opened this issue Oct 27, 2020 · 7 comments

Comments

@dwarburt
Copy link

dwarburt commented Oct 27, 2020

Today I had a build error while trying to build the brave browser

   Compiling semver-parser v0.10.1
error[E0658]: non-builtin inner attributes are unstable
 --> /home/david/git/fork/brave-browser/src/brave/build/rustup/0.1.4/registry/src/github.lhy31512.workers.dev-1ecc6299db9ec823/semver-parser-0.10.1/src/generated.rs:4:1
  |
4 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

   Compiling tracing-log v0.1.1
error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `semver-parser`.

It seems like that comes from this line:

#![rustfmt::skip]
but in order to get it to build I had to delete this line
#![rustfmt::skip]
from my local working copy, and after that it builds fine.

@steveklabnik
Copy link
Owner

dtolnay/semver#218 is the same issue in another crate.

This is very strange...

@kentfredric
Copy link

My analysis indicates that that syntax only started being legal in rust 1.44.

I can build semver-parser 0.10.1 on all rusts newer than 1.44, but all older ones fail.

So to me it looks like, the only regression here is the one added in 0.10.1 with 9e01cd3

https://kentfredric.github.io/rust-vmatrix/#crate-s
snapshot_20201030_213431
https://kentfredric.github.io/rust-vmatrix/semver-parser/
snapshot_20201030_213554

@steveklabnik
Copy link
Owner

Whelp, I did not know this, and thought it was used previously. Sorry about the noise.

@djc
Copy link
Contributor

djc commented Nov 3, 2020

Not sure why this was closed? #54 fixes it and sets up MSRV testing in CI.

@steveklabnik
Copy link
Owner

I thought this was the ticket in rust-lang/rust 😅😓

@j-maas
Copy link

j-maas commented Dec 18, 2020

For those running into this error message: Check that you are not running an older version of Rust by executing rustup update.

@steveklabnik
Copy link
Owner

This should be fixed in 0.10.2.

gnawhleinad added a commit to gnawhleinad/tab-rs that referenced this issue Jan 7, 2021
austinjones pushed a commit to austinjones/tab-rs that referenced this issue Jan 7, 2021
* bump semver-parser

to fix steveklabnik/semver-parser#52

* filter send device attribute ctrl sequences

that was showing:

```
[>1;95;0c
```

to the bash (Apple) terminal.
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

5 participants