Resolve barriers to changing column!() / line!() return type to u32 in #19284 . Address review comments in #21769 .
This commit is contained in:
parent
1212fd8abc
commit
fc9fa1a563
9 changed files with 64 additions and 15 deletions
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
{
|
||||
assert!(file!().ends_with("includeme.fragment"));
|
||||
assert!(line!() == 5_u32);
|
||||
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!() == 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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue