Skip to content

Commit 328fea3

Browse files
committed
Rustup
1 parent 7702555 commit 328fea3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clippy_lints/src/utils/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -938,8 +938,8 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
938938
Def::AssociatedConst(id) |
939939
Def::Macro(id, ..) |
940940
Def::Existential(id) |
941-
Def::AssociatedExistential(id) |
942-
Def::GlobalAsm(id) => Some(id),
941+
Def::AssociatedExistential(id)
942+
=> Some(id),
943943

944944
Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) |
945945
Def::ToolMod | Def::NonMacroAttr | Def::Err => None,

tests/ui/infinite_iter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(iterator_for_each)]
1+
22

33
use std::iter::repeat;
44
#[allow(trivially_copy_pass_by_ref)]

tests/ui/range.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(iterator_step_by)]
1+
22

33
struct NotARange;
44
impl NotARange {

0 commit comments

Comments
 (0)