rustup (fixes #28)

This commit is contained in:
Manish Goregaokar 2015-01-10 11:56:58 +05:30
parent 538db34e60
commit f428b18c47
5 changed files with 20 additions and 20 deletions

View file

@ -1,12 +1,12 @@
#![feature(phase)] #![feature(plugin)]
#[phase(plugin)] #[plugin]
extern crate clippy; extern crate clippy;
pub fn test(foo: Box<Vec<uint>>) { pub fn test(foo: Box<Vec<bool>>) {
println!("{}", foo) println!("{:?}", foo.get(0))
} }
fn main(){ fn main(){
test(box Vec::new()); test(Box::new(Vec::new()));
} }

View file

@ -1,12 +1,13 @@
#![feature(phase)] #![feature(plugin)]
#[phase(plugin)] #[plugin]
extern crate clippy; extern crate clippy;
extern crate collections; extern crate collections;
use collections::dlist::DList; use collections::dlist::DList;
pub fn test(foo: DList<uint>) { pub fn test(foo: DList<uint>) {
println!("{}", foo) println!("{:?}", foo)
} }
fn main(){ fn main(){

View file

@ -1,23 +1,22 @@
#![feature(phase)] #![feature(plugin)]
#[phase(plugin)] #[plugin]
extern crate clippy; extern crate clippy;
fn main(){ fn main(){
let x = Some(1u); let x = Some(1u);
match x { match x {
Some(y) => println!("{}", y), Some(y) => println!("{:?}", y),
_ => () _ => ()
} }
// Not linted // Not linted
match x { match x {
Some(y) => println!("{}", y), Some(y) => println!("{:?}", y),
None => () None => ()
} }
let z = (1u,1u); let z = (1u,1u);
match z { match z {
(2...3, 7...9) => println!("{}", z), (2...3, 7...9) => println!("{:?}", z),
_ => {} _ => {}
} }
} }

View file

@ -1,6 +1,6 @@
#![feature(phase)] #![feature(plugin)]
#[phase(plugin)] #[plugin]
extern crate clippy; extern crate clippy;
fn the_answer(ref mut x: u8) { fn the_answer(ref mut x: u8) {

View file

@ -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; extern crate syntax;
#[phase(plugin, link)] #[macro_use]
extern crate rustc; extern crate rustc;
// Only for the compile time checking of paths // Only for the compile time checking of paths