mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 20:35:09 +00:00
derivable_impls
This commit is contained in:
parent
0adb4d1685
commit
c4688343de
2 changed files with 1 additions and 8 deletions
|
@ -168,7 +168,6 @@ new_ret_no_self = "allow"
|
||||||
## Following lints should be tackled at some point
|
## Following lints should be tackled at some point
|
||||||
borrowed_box = "allow"
|
borrowed_box = "allow"
|
||||||
borrow_deref_ref = "allow"
|
borrow_deref_ref = "allow"
|
||||||
derivable_impls = "allow"
|
|
||||||
derived_hash_with_manual_eq = "allow"
|
derived_hash_with_manual_eq = "allow"
|
||||||
field_reassign_with_default = "allow"
|
field_reassign_with_default = "allow"
|
||||||
forget_non_drop = "allow"
|
forget_non_drop = "allow"
|
||||||
|
|
|
@ -16,19 +16,13 @@ pub enum Namespace {
|
||||||
Macros,
|
Macros,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
|
||||||
pub struct PerNs {
|
pub struct PerNs {
|
||||||
pub types: Option<(ModuleDefId, Visibility, Option<ImportOrExternCrate>)>,
|
pub types: Option<(ModuleDefId, Visibility, Option<ImportOrExternCrate>)>,
|
||||||
pub values: Option<(ModuleDefId, Visibility, Option<ImportId>)>,
|
pub values: Option<(ModuleDefId, Visibility, Option<ImportId>)>,
|
||||||
pub macros: Option<(MacroId, Visibility, Option<ImportId>)>,
|
pub macros: Option<(MacroId, Visibility, Option<ImportId>)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for PerNs {
|
|
||||||
fn default() -> Self {
|
|
||||||
PerNs { types: None, values: None, macros: None }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl PerNs {
|
impl PerNs {
|
||||||
pub fn none() -> PerNs {
|
pub fn none() -> PerNs {
|
||||||
PerNs { types: None, values: None, macros: None }
|
PerNs { types: None, values: None, macros: None }
|
||||||
|
|
Loading…
Reference in a new issue