Resolve barriers to changing column!() / line!() return type to u32 in #19284 . Address review comments in #21769 .

This commit is contained in:
Brian Brooks 2015-02-21 17:26:29 -05:00
parent 1212fd8abc
commit fc9fa1a563
9 changed files with 64 additions and 15 deletions

View file

@ -2,6 +2,6 @@
{
assert!(file!().ends_with("includeme.fragment"));
assert!(line!() == 5_u32);
assert!(line!() == 5u32);
format!("victory robot {}", line!())
}

View file

@ -23,7 +23,7 @@ macro_rules! indirect_line { () => ( line!() ) }
pub fn main() {
assert_eq!(line!(), 25);
assert!((column!() == 4_u32));
assert!((column!() == 4u32));
assert_eq!(indirect_line!(), 27);
assert!((file!().ends_with("syntax-extension-source-utils.rs")));
assert_eq!(stringify!((2*3) + 5).to_string(), "( 2 * 3 ) + 5".to_string());