diff options
| author | Brian Anderson <banderson@mozilla.com> | 2015-03-05 18:33:58 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2015-03-23 14:40:26 -0700 |
| commit | df290f127e923e0aacfe8223dd77f0fa222f0bc8 (patch) | |
| tree | 65f8e1091b566595f7b5cae402c2121f22529db5 /src/test/run-pass/syntax-extension-source-utils.rs | |
| parent | 7770ea706b2ba10ebf9112b38af9aaad5cc6f24c (diff) | |
| download | rust-df290f127e923e0aacfe8223dd77f0fa222f0bc8.tar.gz rust-df290f127e923e0aacfe8223dd77f0fa222f0bc8.zip | |
Require feature attributes, and add them where necessary
Diffstat (limited to 'src/test/run-pass/syntax-extension-source-utils.rs')
| -rw-r--r-- | src/test/run-pass/syntax-extension-source-utils.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/run-pass/syntax-extension-source-utils.rs b/src/test/run-pass/syntax-extension-source-utils.rs index 684ca7fa2b6..b3f503aad34 100644 --- a/src/test/run-pass/syntax-extension-source-utils.rs +++ b/src/test/run-pass/syntax-extension-source-utils.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![feature(core)] + // This test is brittle! // ignore-pretty - the pretty tests lose path information, breaking include! @@ -22,9 +24,9 @@ pub mod m1 { macro_rules! indirect_line { () => ( line!() ) } pub fn main() { - assert_eq!(line!(), 25); + assert_eq!(line!(), 27); assert!((column!() == 4)); - assert_eq!(indirect_line!(), 27); + 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()); assert!(include!("syntax-extension-source-utils-files/includeme.\ @@ -42,7 +44,7 @@ pub fn main() { // The Windows tests are wrapped in an extra module for some reason assert!((m1::m2::where_am_i().ends_with("m1::m2"))); - assert!(match (45, "( 2 * 3 ) + 5") { + assert!(match (47, "( 2 * 3 ) + 5") { (line!(), stringify!((2*3) + 5)) => true, _ => false }) |
