mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Emit function bodies in expanding builtin derives
This commit is contained in:
parent
9811a3af5f
commit
d9f4cbbe8f
7 changed files with 962 additions and 38 deletions
|
@ -153,6 +153,12 @@ pub struct Ident<Span> {
|
|||
pub span: Span,
|
||||
}
|
||||
|
||||
impl<S> Ident<S> {
|
||||
pub fn new(text: impl Into<SmolStr>, span: S) -> Self {
|
||||
Ident { text: text.into(), span }
|
||||
}
|
||||
}
|
||||
|
||||
fn print_debug_subtree<Span: fmt::Debug>(
|
||||
f: &mut fmt::Formatter<'_>,
|
||||
subtree: &Subtree<Span>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue