mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Rustup
This commit is contained in:
parent
77025557f9
commit
328fea3e0d
@ -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 New Issue
Block a user