We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7702555 commit 328fea3Copy full SHA for 328fea3
clippy_lints/src/utils/mod.rs
@@ -938,8 +938,8 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
938
Def::AssociatedConst(id) |
939
Def::Macro(id, ..) |
940
Def::Existential(id) |
941
- Def::AssociatedExistential(id) |
942
- Def::GlobalAsm(id) => Some(id),
+ Def::AssociatedExistential(id)
+ => Some(id),
943
944
Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) |
945
Def::ToolMod | Def::NonMacroAttr | Def::Err => None,
tests/ui/infinite_iter.rs
@@ -1,4 +1,4 @@
1
-#![feature(iterator_for_each)]
+
2
3
use std::iter::repeat;
4
#[allow(trivially_copy_pass_by_ref)]
tests/ui/range.rs
-#![feature(iterator_step_by)]
struct NotARange;
impl NotARange {
0 commit comments