Rename col!
to column!
.
This macro is very rarely used, so there is no need (and it is better) for it to avoid the abbreviation. Closes rust-lang/rfcs#467. [breaking-change]
This commit is contained in:
parent
803aacd5ae
commit
3f3b2d6b7e
4 changed files with 10 additions and 10 deletions
|
@ -25,7 +25,7 @@ macro_rules! indirect_line( () => ( line!() ) )
|
|||
|
||||
pub fn main() {
|
||||
assert_eq!(line!(), 27);
|
||||
//assert!((col!() == 11));
|
||||
//assert!((column!() == 11));
|
||||
assert_eq!(indirect_line!(), 29);
|
||||
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