mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Make tt generic over the span data
This commit is contained in:
parent
d805c74c51
commit
41a46a78f2
48 changed files with 806 additions and 569 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