-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow raw identifiers e.g.
r#mod
(#149)
* Allow raw identifiers * Fix UI tests * UI tests with latest nightly * Add UI test
- Loading branch information
Showing
5 changed files
with
54 additions
and
1 deletion.
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
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,21 @@ | ||
use info::{self as scale_info}; | ||
use scale_info::TypeInfo; | ||
|
||
#[allow(dead_code, non_camel_case_types)] | ||
mod r#mod { | ||
use super::*; | ||
#[derive(TypeInfo)] | ||
pub enum r#enum { | ||
r#true, | ||
} | ||
#[derive(TypeInfo)] | ||
pub struct r#struct { | ||
r#try: r#enum, | ||
} | ||
} | ||
|
||
fn assert_type_info<T: TypeInfo + 'static>() {} | ||
|
||
fn main() { | ||
assert_type_info::<r#mod::r#struct>(); | ||
} |