mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 03:38:00 +00:00
Record expansion info
This commit is contained in:
@@ -8,6 +8,7 @@ use syntax::ptr::P;
|
||||
use syntax::tokenstream::TokenTree;
|
||||
|
||||
use bound;
|
||||
use span;
|
||||
use internals::ast::{Body, Field, Item, Style, Variant};
|
||||
use internals::{attr, Error};
|
||||
|
||||
@@ -44,7 +45,7 @@ pub fn expand_derive_deserialize(
|
||||
let builder = aster::AstBuilder::new().span(span);
|
||||
|
||||
let impl_item = deserialize_item(cx, &builder, &item);
|
||||
push(Annotatable::Item(impl_item))
|
||||
push(span::record_expansion(cx, impl_item, "Deserialize"))
|
||||
}
|
||||
|
||||
fn deserialize_item(
|
||||
|
||||
Reference in New Issue
Block a user