-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(custom_attributes): Move module to separate file (#1187)
- Use package name `custom_attributes` to ease finding related files - Make config dependency explicit in `build.rs` - Add oneof fields to make every `field_attribute` part of the test
- Loading branch information
1 parent
5fd9c86
commit de2a009
Showing
4 changed files
with
26 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//! This tests the custom attributes support by abusing docs. | ||
//! | ||
//! Docs really are full-blown attributes. So we use them to ensure we can place them on everything | ||
//! we need. If they aren't put onto something or allowed not to be there (by the generator), | ||
//! compilation fails. | ||
#![deny(missing_docs)] | ||
|
||
include!(concat!(env!("OUT_DIR"), "/custom_attributes.rs")); |
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