Updated to new extern crate syntax.
Added warning for old deprecated syntax
This commit is contained in:
parent
b42e079c6f
commit
2cb210d2c6
13 changed files with 25 additions and 20 deletions
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// aux-build:issue-16725.rs
|
||||
|
||||
extern crate foo = "issue-16725";
|
||||
extern crate "issue-16725" as foo;
|
||||
|
||||
fn main() {
|
||||
unsafe { foo::bar(); }
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
// Check explicit region bounds on methods in the cross crate case.
|
||||
|
||||
extern crate lib = "regions-bounded-method-type-parameters-cross-crate-lib";
|
||||
extern crate "regions-bounded-method-type-parameters-cross-crate-lib" as lib;
|
||||
|
||||
use lib::Inv;
|
||||
use lib::MaybeOwned;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// aux-build:issue-15562.rs
|
||||
|
||||
extern crate i = "issue-15562";
|
||||
extern crate "issue-15562" as i;
|
||||
|
||||
pub fn main() {
|
||||
extern {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// aux-build:issue-16643.rs
|
||||
|
||||
extern crate i = "issue-16643";
|
||||
extern crate "issue-16643" as i;
|
||||
|
||||
pub fn main() {
|
||||
i::TreeBuilder::<uint>.process_token();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue