-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The primary feature of this change is adding support for deriving zerocopy's traits on data-carrying enums. Along with that, it has a few other features: - Adds support for enums with repr(C, int) - Improves zero discriminant detection for enums with negative discriminants - For development, adds a VSCode config so we can prevent rust-analyzer from choking on our tests with enums that have thousands of variants
- Loading branch information
Showing
14 changed files
with
2,213 additions
and
401 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"rust-analyzer.check.extraEnv": { | ||
"RUSTFLAGS": "--cfg rust_analyzer", | ||
} | ||
} |
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
Oops, something went wrong.