-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid depending on syn's
full
feature flag
This reduces clean build times by about a second (20%).
- Loading branch information
1 parent
e01808b
commit f3bb174
Showing
3 changed files
with
35 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
error: #[bitflags] requires an enum | ||
--> $DIR/not_enum.rs:2:1 | ||
error: expected enum for #[bitflags], found struct | ||
--> ui/not_enum.rs:3:1 | ||
| | ||
2 | / #[derive(Copy, Clone)] | ||
3 | | struct Foo(u16); | ||
| |________________^ | ||
3 | struct Foo(u16); | ||
| ^^^^^^ | ||
|
||
error: #[bitflags] requires an enum | ||
--> $DIR/not_enum.rs:6:1 | ||
error: expected one of: `struct`, `enum`, `union` | ||
--> ui/not_enum.rs:6:1 | ||
| | ||
6 | const WTF: u8 = 42; | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^ |