diff options
| author | bors <bors@rust-lang.org> | 2014-05-27 17:46:48 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-27 17:46:48 -0700 |
| commit | 911cc9c35234ab12a4b9a6fc1cb35b52556f242d (patch) | |
| tree | f434006eca9cc58dd01c2a033c505d606d2fced2 /src/test/run-pass/syntax-extension-source-utils.rs | |
| parent | 30bf73fd789ad1414284f59b005e85304ff963ad (diff) | |
| parent | c256dcf8b66fb7100e2d735d6640cf76cb2d22f5 (diff) | |
| download | rust-911cc9c35234ab12a4b9a6fc1cb35b52556f242d.tar.gz rust-911cc9c35234ab12a4b9a6fc1cb35b52556f242d.zip | |
auto merge of #14414 : richo/rust/features/nerf_unused_string_fns, r=alexcrichton
This should block on #14323
Diffstat (limited to 'src/test/run-pass/syntax-extension-source-utils.rs')
| -rw-r--r-- | src/test/run-pass/syntax-extension-source-utils.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/run-pass/syntax-extension-source-utils.rs b/src/test/run-pass/syntax-extension-source-utils.rs index b8f3e72652a..e4679a486e9 100644 --- a/src/test/run-pass/syntax-extension-source-utils.rs +++ b/src/test/run-pass/syntax-extension-source-utils.rs @@ -16,7 +16,7 @@ pub mod m1 { pub mod m2 { pub fn where_am_i() -> String { - (module_path!()).to_strbuf() + (module_path!()).to_string() } } } @@ -28,14 +28,14 @@ pub fn main() { //assert!((col!() == 11)); assert_eq!(indirect_line!(), 29); assert!((file!().ends_with("syntax-extension-source-utils.rs"))); - assert_eq!(stringify!((2*3) + 5).to_strbuf(), "( 2 * 3 ) + 5".to_strbuf()); + assert_eq!(stringify!((2*3) + 5).to_string(), "( 2 * 3 ) + 5".to_string()); assert!(include!("syntax-extension-source-utils-files/includeme.\ - fragment").to_strbuf() - == "victory robot 6".to_strbuf()); + fragment").to_string() + == "victory robot 6".to_string()); assert!( include_str!("syntax-extension-source-utils-files/includeme.\ - fragment").to_strbuf() + fragment").to_string() .as_slice() .starts_with("/* this is for ")); assert!( |
