Auto merge of #21769 - brooksbp:column-line-macro, r=nick29581
Please see discussion in #19284 .
This commit is contained in:
commit
f0f7ca27de
11 changed files with 66 additions and 15 deletions
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
{
|
||||
assert!(file!().ends_with("includeme.fragment"));
|
||||
assert!(line!() == 5_usize);
|
||||
assert!(line!() == 5u32);
|
||||
format!("victory robot {}", line!())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue