libsyntax: Remove the use foo = bar syntax from the language in favor
of `use bar as foo`. Change all uses of `use foo = bar` to `use bar as foo`. Implements RFC #47. Closes #16461. [breaking-change]
This commit is contained in:
@@ -545,7 +545,7 @@ impl fmt::Show for clean::ViewPath {
|
||||
if *name == src.path.segments.last().unwrap().name {
|
||||
write!(f, "use {};", *src)
|
||||
} else {
|
||||
write!(f, "use {} = {};", *name, *src)
|
||||
write!(f, "use {} as {};", *src, *name)
|
||||
}
|
||||
}
|
||||
clean::GlobImport(ref src) => {
|
||||
|
||||
Reference in New Issue
Block a user