Auto merge of #21769 - brooksbp:column-line-macro, r=nick29581

Please see discussion in #19284 .
This commit is contained in:
bors 2015-02-23 01:53:38 +00:00
commit f0f7ca27de
11 changed files with 66 additions and 15 deletions

View file

@ -2,6 +2,6 @@
{
assert!(file!().ends_with("includeme.fragment"));
assert!(line!() == 5_usize);
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!() == 11));
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());