This commit is contained in:
Oliver Schneider 2017-11-22 10:55:12 +01:00
parent c362efa420
commit af718413db
No known key found for this signature in database
GPG Key ID: A69F8D225B3AD7D9
7 changed files with 26 additions and 17 deletions

View File

@ -1,6 +1,9 @@
# Change Log
All notable changes to this project will be documented in this file.
## 0.0.174
* Rustup to *rustc 1.23.0-nightly (63739ab7b 2017-11-21)*
## 0.0.173
* Rustup to *rustc 1.23.0-nightly (33374fa9d 2017-11-20)*

View File

@ -1,6 +1,6 @@
[package]
name = "clippy"
version = "0.0.173"
version = "0.0.174"
authors = [
"Manish Goregaokar <manishsmail@gmail.com>",
"Andre Bogus <bogusandre@gmail.com>",
@ -37,7 +37,7 @@ path = "src/driver.rs"
[dependencies]
# begin automatic update
clippy_lints = { version = "0.0.173", path = "clippy_lints" }
clippy_lints = { version = "0.0.174", path = "clippy_lints" }
# end automatic update
cargo_metadata = "0.2"
regex = "0.2"

View File

@ -1,7 +1,7 @@
[package]
name = "clippy_lints"
# begin automatic update
version = "0.0.173"
version = "0.0.174"
# end automatic update
authors = [
"Manish Goregaokar <manishsmail@gmail.com>",

View File

@ -325,8 +325,14 @@ impl<'a, 'tcx> Visitor<'tcx> for RefVisitor<'a, 'tcx> {
TyPath(ref path) => {
self.collect_anonymous_lifetimes(path, ty);
},
TyImplTraitExistential(ref param_bounds) |
TyImplTraitUniversal(_, ref param_bounds) => for bound in param_bounds {
TyImplTraitExistential(ref exist_ty, _) => {
for bound in &exist_ty.bounds {
if let RegionTyParamBound(_) = *bound {
self.record(&None);
}
}
}
TyImplTraitUniversal(_, ref param_bounds) => for bound in param_bounds {
if let RegionTyParamBound(_) = *bound {
self.record(&None);
}

View File

@ -38,7 +38,7 @@ note: potential failure(s)
|
31 | panic!();
| ^^^^^^^^^
= note: this error originates in a macro outside of the current crate
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
error: consider implementing `TryFrom` instead
--> $DIR/fallible_impl_from.rs:37:1
@ -65,7 +65,7 @@ note: potential failure(s)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
43 | panic!("{:?}", s);
| ^^^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
error: consider implementing `TryFrom` instead
--> $DIR/fallible_impl_from.rs:55:1
@ -87,5 +87,5 @@ note: potential failure(s)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58 | panic!("{:?}", s);
| ^^^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)

View File

@ -264,7 +264,7 @@ note: consider refactoring into `Ok(3) | Ok(_)`
|
238 | Ok(3) => println!("ok"),
| ^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
error: Err(_) will match all errors, maybe not a good idea
--> $DIR/matches.rs:246:9
@ -290,7 +290,7 @@ note: consider refactoring into `Ok(3) | Ok(_)`
|
244 | Ok(3) => println!("ok"),
| ^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
error: Err(_) will match all errors, maybe not a good idea
--> $DIR/matches.rs:252:9
@ -316,7 +316,7 @@ note: consider refactoring into `Ok(3) | Ok(_)`
|
250 | Ok(3) => println!("ok"),
| ^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
error: this `match` has identical arm bodies
--> $DIR/matches.rs:258:18
@ -334,7 +334,7 @@ note: consider refactoring into `Ok(3) | Ok(_)`
|
257 | Ok(3) => println!("ok"),
| ^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
error: this `match` has identical arm bodies
--> $DIR/matches.rs:265:18
@ -352,7 +352,7 @@ note: consider refactoring into `Ok(3) | Ok(_)`
|
264 | Ok(3) => println!("ok"),
| ^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
error: this `match` has identical arm bodies
--> $DIR/matches.rs:271:18
@ -370,7 +370,7 @@ note: consider refactoring into `Ok(3) | Ok(_)`
|
270 | Ok(3) => println!("ok"),
| ^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
error: this `match` has identical arm bodies
--> $DIR/matches.rs:277:18
@ -388,5 +388,5 @@ note: consider refactoring into `Ok(3) | Ok(_)`
|
276 | Ok(3) => println!("ok"),
| ^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)

View File

@ -5,7 +5,7 @@ error: handle written amount returned or use `Write::write_all` instead
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-io-amount` implied by `-D warnings`
= note: this error originates in a macro outside of the current crate
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
error: handle read amount returned or use `Read::read_exact` instead
--> $DIR/unused_io_amount.rs:13:5
@ -13,7 +13,7 @@ error: handle read amount returned or use `Read::read_exact` instead
13 | try!(s.read(&mut buf));
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro outside of the current crate
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
error: handle written amount returned or use `Write::write_all` instead
--> $DIR/unused_io_amount.rs:18:5