Use @str instead of @~str in libsyntax and librustc. Fixes #5048.
This almost removes the StringRef wrapper, since all strings are Equiv-alent now. Removes a lot of `/* bad */ copy *`'s, and converts several things to be &'static str (the lint table and the intrinsics table). There are many instances of .to_managed(), unfortunately.
This commit is contained in:
parent
641910dc13
commit
096f6f56a8
94 changed files with 1259 additions and 1283 deletions
|
@ -49,8 +49,8 @@ fn inject_libstd_ref(sess: Session, crate: @ast::crate) -> @ast::crate {
|
|||
spanned(ast::attribute_ {
|
||||
style: ast::attr_inner,
|
||||
value: @spanned(ast::meta_name_value(
|
||||
@~"vers",
|
||||
spanned(ast::lit_str(@STD_VERSION.to_str()))
|
||||
@"vers",
|
||||
spanned(ast::lit_str(STD_VERSION.to_managed()))
|
||||
)),
|
||||
is_sugared_doc: false
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue