mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Replace local copy of exhaustiveness checking with upstream librarified version
This commit is contained in:
parent
d410d4a2ba
commit
2370b70f25
11 changed files with 603 additions and 1952 deletions
|
@ -939,6 +939,15 @@ impl From<AssocItemId> for AttrDefId {
|
|||
}
|
||||
}
|
||||
}
|
||||
impl From<VariantId> for AttrDefId {
|
||||
fn from(vid: VariantId) -> Self {
|
||||
match vid {
|
||||
VariantId::EnumVariantId(id) => id.into(),
|
||||
VariantId::StructId(id) => id.into(),
|
||||
VariantId::UnionId(id) => id.into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub enum VariantId {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue