mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 07:04:18 +00:00
Rustup
This commit is contained in:
parent
77025557f9
commit
328fea3e0d
3 changed files with 4 additions and 4 deletions
|
@ -938,8 +938,8 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
|
|||
Def::AssociatedConst(id) |
|
||||
Def::Macro(id, ..) |
|
||||
Def::Existential(id) |
|
||||
Def::AssociatedExistential(id) |
|
||||
Def::GlobalAsm(id) => Some(id),
|
||||
Def::AssociatedExistential(id)
|
||||
=> Some(id),
|
||||
|
||||
Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) |
|
||||
Def::ToolMod | Def::NonMacroAttr | Def::Err => None,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![feature(iterator_for_each)]
|
||||
|
||||
|
||||
use std::iter::repeat;
|
||||
#[allow(trivially_copy_pass_by_ref)]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![feature(iterator_step_by)]
|
||||
|
||||
|
||||
struct NotARange;
|
||||
impl NotARange {
|
||||
|
|
Loading…
Reference in a new issue