rustc: Remove matching on ~str from the language
The `~str` type is not long for this world as it will be superseded by the soon-to-come DST changes for the language. The new type will be `~Str`, and matching over the allocation will no longer be supported. Matching on `&str` will continue to work, in both a pre and post DST world.
This commit is contained in:
@@ -357,7 +357,8 @@ impl fmt::Show for clean::Type {
|
||||
write!(f.buf, "{}{}fn{}{}",
|
||||
PuritySpace(decl.purity),
|
||||
match decl.abi {
|
||||
~"" | ~"\"Rust\"" => ~"",
|
||||
ref x if "" == *x => ~"",
|
||||
ref x if "\"Rust\"" == *x => ~"",
|
||||
ref s => " " + *s + " ",
|
||||
},
|
||||
decl.generics,
|
||||
|
||||
Reference in New Issue
Block a user