Closed
Description
Running rust nightly on Windows 10 using the MSVC rust, attempting to build clippy results in:
C:\Users\jeremiah
λ cargo install clippy
Updating registry `https://github.com/rust-lang/crates.io-index`
Compiling regex-syntax v0.3.3
Compiling quine-mc_cluskey v0.2.2
Compiling rustc-serialize v0.3.19
Compiling nom v1.2.3
Compiling unicode-normalization v0.1.2
Compiling matches v0.1.2
Compiling semver v0.2.3
Compiling toml v0.1.30
Compiling clippy_lints v0.0.75
error: no method named `def_id` found for type `rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\drop_ref.rs:38:64
|>
38 |> let def_id = cx.tcx.def_map.borrow()[&path.id].def_id();
|> ^^^^^^
error: no method named `def_id` found for type `&rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\enum_glob_use.rs:47:76
|>
47 |> if let Some(node_id) = cx.tcx.map.as_local_node_id(def.def_id()) {
|> ^^^^^^
error: no method named `def_id` found for type `&rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\enum_glob_use.rs:54:72
|>
54 |> let child = cx.sess().cstore.item_children(def.def_id());
|> ^^^^^^
error: no method named `def_id` found for type `&rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\let_if_seq.rs:72:39
|>
72 |> !used_in_expr(cx, def.def_id(), cond),
|> ^^^^^^
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\let_if_seq.rs:64:13: 126:15: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
error: no method named `def_id` found for type `&rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\let_if_seq.rs:73:56
|>
73 |> let Some(value) = check_assign(cx, def.def_id(), then),
|> ^^^^^^
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:72:12: 72:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\let_if_seq.rs:64:13: 126:15: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
error: no method named `def_id` found for type `&rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\let_if_seq.rs:74:39
|>
74 |> !used_in_expr(cx, def.def_id(), value),
|> ^^^^^^
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:72:12: 72:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\let_if_seq.rs:64:13: 126:15: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
error: no method named `def_id` found for type `&rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\let_if_seq.rs:80:69
|>
80 |> if let Some(default) = check_assign(cx, def.def_id(), else_) {
|> ^^^^^^
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:72:12: 72:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\let_if_seq.rs:64:13: 126:15: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
error: no method named `def_id` found for type `&rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\let_if_seq.rs:142:28
|>
142 |> self.id == def.def_id(),
|> ^^^^^^
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\let_if_seq.rs:139:9: 146:11: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
error: no method named `def_id` found for type `&rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\let_if_seq.rs:158:21
|>
158 |> decl == def.def_id(),
|> ^^^^^^
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\let_if_seq.rs:152:5: 175:7: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
error: no method named `def_id` found for type `rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\mem_forget.rs:30:69
|>
30 |> let def_id = cx.tcx.def_map.borrow()[&path_expr.id].def_id();
|> ^^^^^^
error: no method named `def_id` found for type `rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\minmax.rs:58:60
|>
58 |> let def_id = cx.tcx.def_map.borrow()[&path.id].def_id();
|> ^^^^^^
error: expected an array or slice, found `&[syntax::codemap::Spanned<rustc::hir::Stmt_>]` [E0529]
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\needless_bool.rs:158:10
|>
158 |> ([], Some(e)) => fetch_bool_expr(&**e),
|> ^^
help: the semantics of slice patterns changed recently; see issue #23121
error: expected an array or slice, found `&[syntax::codemap::Spanned<rustc::hir::Stmt_>]` [E0529]
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\needless_bool.rs:159:10
|>
159 |> ([ref e], None) => {
|> ^^^^^^^
help: the semantics of slice patterns changed recently; see issue #23121
error: no method named `def_id` found for type `&rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\regex.rs:106:30
|>
106 |> let def_id = def.def_id();
|> ^^^^^^
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:72:12: 72:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\regex.rs:101:9: 120:11: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
error: no method named `def_id` found for type `rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\transmute.rs:63:69
|>
63 |> let def_id = cx.tcx.def_map.borrow()[&path_expr.id].def_id();
|> ^^^^^^
error: no method named `def_id` found for type `&rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\types.rs:59:29
|>
59 |> if Some(did.def_id()) == cx.tcx.lang_items.owned_box() {
|> ^^^^^^
error: no method named `def_id` found for type `&rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\types.rs:68:52
|>
68 |> match_def_path(cx, did.def_id(), &paths::VEC),
|> ^^^^^^
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs:57:12: 57:46: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\types.rs:60:21: 77:22: note: in this expansion of if_let_chain! (defined in .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\utils/mod.rs)
error: no method named `def_id` found for type `&rustc::hir::def::PathResolution` in the current scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.75\src\types.rs:78:50
|>
78 |> } else if match_def_path(cx, did.def_id(), &paths::LINKED_LIST) {
|> ^^^^^^
error: aborting due to 18 previous errors
error: failed to compile `clippy v0.0.75`, intermediate artifacts can be found at `C:\Users\jeremiah\AppData\Local\Temp\cargo-install.XTpQBpWOIaXZ`
Caused by:
Could not compile `clippy_lints`.
To learn more, run the command again with --verbose.
Metadata
Metadata
Assignees
Labels
No labels