mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
commit
39eaf7864c
@ -18,7 +18,7 @@ use crate::{
|
||||
ConstId, HasModule, ImplId, LocalModuleId, MacroId, ModuleDefId, ModuleId, TraitId,
|
||||
};
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
pub(crate) enum ImportType {
|
||||
Glob,
|
||||
Named,
|
||||
@ -302,14 +302,14 @@ impl ItemScope {
|
||||
$changed = true;
|
||||
}
|
||||
Entry::Occupied(mut entry)
|
||||
if $glob_imports.$field.contains(&$lookup)
|
||||
&& matches!($def_import_type, ImportType::Named) =>
|
||||
if matches!($def_import_type, ImportType::Named) =>
|
||||
{
|
||||
if $glob_imports.$field.remove(&$lookup) {
|
||||
cov_mark::hit!(import_shadowed);
|
||||
$glob_imports.$field.remove(&$lookup);
|
||||
entry.insert(fld);
|
||||
$changed = true;
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user