This commit is contained in:
Oliver Schneider 2018-08-07 16:34:17 +02:00
parent 77025557f9
commit 328fea3e0d
3 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -1,4 +1,4 @@
#![feature(iterator_for_each)]
use std::iter::repeat;
#[allow(trivially_copy_pass_by_ref)]

View File

@ -1,4 +1,4 @@
#![feature(iterator_step_by)]
struct NotARange;
impl NotARange {