diff --git a/examples/box_vec.rs b/examples/box_vec.rs index acc47dd0fb5..874b9e8663c 100644 --- a/examples/box_vec.rs +++ b/examples/box_vec.rs @@ -1,12 +1,12 @@ -#![feature(phase)] +#![feature(plugin)] -#[phase(plugin)] +#[plugin] extern crate clippy; -pub fn test(foo: Box>) { - println!("{}", foo) +pub fn test(foo: Box>) { + println!("{:?}", foo.get(0)) } fn main(){ - test(box Vec::new()); + test(Box::new(Vec::new())); } \ No newline at end of file diff --git a/examples/dlist.rs b/examples/dlist.rs index 9efa92fd63a..05b71eabdcc 100644 --- a/examples/dlist.rs +++ b/examples/dlist.rs @@ -1,12 +1,13 @@ -#![feature(phase)] +#![feature(plugin)] -#[phase(plugin)] +#[plugin] extern crate clippy; + extern crate collections; use collections::dlist::DList; pub fn test(foo: DList) { - println!("{}", foo) + println!("{:?}", foo) } fn main(){ diff --git a/examples/match_if_let.rs b/examples/match_if_let.rs index b437424101d..5de96dd9951 100644 --- a/examples/match_if_let.rs +++ b/examples/match_if_let.rs @@ -1,23 +1,22 @@ -#![feature(phase)] +#![feature(plugin)] -#[phase(plugin)] +#[plugin] extern crate clippy; - fn main(){ let x = Some(1u); match x { - Some(y) => println!("{}", y), + Some(y) => println!("{:?}", y), _ => () } // Not linted match x { - Some(y) => println!("{}", y), + Some(y) => println!("{:?}", y), None => () } let z = (1u,1u); match z { - (2...3, 7...9) => println!("{}", z), + (2...3, 7...9) => println!("{:?}", z), _ => {} } } \ No newline at end of file diff --git a/examples/toplevel_ref_arg.rs b/examples/toplevel_ref_arg.rs index 4180ccce9aa..538e377c74f 100644 --- a/examples/toplevel_ref_arg.rs +++ b/examples/toplevel_ref_arg.rs @@ -1,6 +1,6 @@ -#![feature(phase)] +#![feature(plugin)] -#[phase(plugin)] +#[plugin] extern crate clippy; fn the_answer(ref mut x: u8) { diff --git a/src/lib.rs b/src/lib.rs index 3b556ff2c63..da79e5ce9e5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,10 +1,10 @@ -#![feature(globs, phase, plugin_registrar)] +#![feature(plugin_registrar, box_syntax)] -#![allow(unused_imports)] +#![allow(unused_imports, unstable)] -#[phase(plugin, link)] +#[macro_use] extern crate syntax; -#[phase(plugin, link)] +#[macro_use] extern crate rustc; // Only for the compile time checking of paths