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:
parent
7074592ee1
commit
67deb2e65e
62 changed files with 140 additions and 136 deletions
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use std = std::slice; //~ ERROR import conflicts with imported crate
|
||||
use std::slice as std; //~ ERROR import conflicts with imported crate
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
extern crate extern_mod_ordering_lib;
|
||||
|
||||
use the_lib = extern_mod_ordering_lib::extern_mod_ordering_lib;
|
||||
use extern_mod_ordering_lib::extern_mod_ordering_lib as the_lib;
|
||||
|
||||
pub fn main() {
|
||||
the_lib::f();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue