mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
⬆️ rust-analyzer
This commit is contained in:
parent
3e0e51c108
commit
bc45c7659a
321 changed files with 11210 additions and 9720 deletions
|
@ -43,5 +43,14 @@ macro_rules! impl_from {
|
|||
}
|
||||
)*)?
|
||||
)*
|
||||
};
|
||||
($($variant:ident$(<$V:ident>)?),* for $enum:ident) => {
|
||||
$(
|
||||
impl$(<$V>)? From<$variant$(<$V>)?> for $enum$(<$V>)? {
|
||||
fn from(it: $variant$(<$V>)?) -> $enum$(<$V>)? {
|
||||
$enum::$variant(it)
|
||||
}
|
||||
}
|
||||
)*
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue