std: Rename strbuf operations to string

[breaking-change]
This commit is contained in:
Richo Healey 2014-05-25 03:17:19 -07:00
parent 4348e23b26
commit 1f1b2e42d7
304 changed files with 2567 additions and 2567 deletions

View file

@ -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!(