Version bump

This commit is contained in:
Oliver Schneider 2018-06-19 09:56:37 +02:00
parent d3b862f9d7
commit 7d672888fe
8 changed files with 20 additions and 10 deletions

View File

@ -1,6 +1,9 @@
# Change Log
All notable changes to this project will be documented in this file.
## 0.0.209
* Rustup to *rustc 1.28.0-nightly (523097979 2018-06-18)*
## 0.0.208
* Rustup to *rustc 1.28.0-nightly (86a8f1a63 2018-06-17)*

View File

@ -2,7 +2,7 @@ cargo-features = ["edition"]
[package]
name = "clippy"
version = "0.0.208"
version = "0.0.209"
authors = [
"Manish Goregaokar <manishsmail@gmail.com>",
"Andre Bogus <bogusandre@gmail.com>",
@ -40,7 +40,7 @@ path = "src/driver.rs"
[dependencies]
# begin automatic update
clippy_lints = { version = "0.0.208", path = "clippy_lints" }
clippy_lints = { version = "0.0.209", path = "clippy_lints" }
# end automatic update
regex = "1"
semver = "0.9"

View File

@ -3,7 +3,7 @@ cargo-features = ["edition"]
[package]
name = "clippy_lints"
# begin automatic update
version = "0.0.208"
version = "0.0.209"
# end automatic update
authors = [
"Manish Goregaokar <manishsmail@gmail.com>",

View File

@ -327,13 +327,15 @@ impl<'a, 'tcx> Visitor<'tcx> for RefVisitor<'a, 'tcx> {
TyPath(ref path) => {
self.collect_anonymous_lifetimes(path, ty);
},
TyImplTraitExistential(ref exist_ty, _) => {
TyImplTraitExistential(exist_ty_id, _, _) => {
if let ItemExistential(ref exist_ty) = self.cx.tcx.hir.expect_item(exist_ty_id.id).node {
for bound in &exist_ty.bounds {
if let RegionTyParamBound(_) = *bound {
self.record(&None);
}
}
}
}
TyTraitObject(ref bounds, ref lt) => {
if !lt.is_elided() {
self.abort = true;

View File

@ -143,6 +143,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
hir::ItemGlobalAsm(..) => "an assembly blob",
hir::ItemTy(..) => "a type alias",
hir::ItemUnion(..) => "a union",
hir::ItemExistential(..) => "an existential type",
hir::ItemExternCrate(..) |
hir::ItemForeignMod(..) |
hir::ItemImpl(..) |

View File

@ -380,6 +380,9 @@ fn print_item(cx: &LateContext, item: &hir::Item) {
hir::ItemTy(..) => {
println!("type alias for {:?}", cx.tcx.type_of(did));
},
hir::ItemExistential(..) => {
println!("existential type with real type {:?}", cx.tcx.type_of(did));
},
hir::ItemEnum(..) => {
println!("enum definition of type {:?}", cx.tcx.type_of(did));
},

View File

@ -981,6 +981,7 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
Def::Const(id) |
Def::AssociatedConst(id) |
Def::Macro(id, ..) |
Def::Existential(id) |
Def::GlobalAsm(id) => Some(id),
Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) | Def::Err => None,

View File

@ -1,7 +1,7 @@
rustc 1.28.0-nightly (86a8f1a63 2018-06-17)
rustc 1.28.0-nightly (523097979 2018-06-18)
binary: rustc
commit-hash: 86a8f1a6374dd558ebdafe061e61720a73ae732c
commit-date: 2018-06-17
commit-hash: 5230979794db209de492b3f7cc688020b72bc7c6
commit-date: 2018-06-18
host: x86_64-unknown-linux-gnu
release: 1.28.0-nightly
LLVM version: 6.0