mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 10:11:01 +00:00
Follow rustc: Compiler internals changed
This commit is contained in:
@@ -57,7 +57,7 @@ fn expand_derive_serialize(
|
|||||||
sp: Span,
|
sp: Span,
|
||||||
mitem: &MetaItem,
|
mitem: &MetaItem,
|
||||||
item: &Item,
|
item: &Item,
|
||||||
mut push: Box<FnMut(P<ast::Item>)>
|
push: &mut FnMut(P<ast::Item>)
|
||||||
) {
|
) {
|
||||||
let inline = cx.meta_word(sp, token::InternedString::new("inline"));
|
let inline = cx.meta_word(sp, token::InternedString::new("inline"));
|
||||||
let attrs = vec!(cx.attribute(sp, inline));
|
let attrs = vec!(cx.attribute(sp, inline));
|
||||||
@@ -462,7 +462,7 @@ pub fn expand_derive_deserialize(
|
|||||||
sp: Span,
|
sp: Span,
|
||||||
mitem: &MetaItem,
|
mitem: &MetaItem,
|
||||||
item: &Item,
|
item: &Item,
|
||||||
mut push: Box<FnMut(P<ast::Item>)>
|
push: &mut FnMut(P<ast::Item>)
|
||||||
) {
|
) {
|
||||||
let inline = cx.meta_word(sp, token::InternedString::new("inline"));
|
let inline = cx.meta_word(sp, token::InternedString::new("inline"));
|
||||||
let attrs = vec!(cx.attribute(sp, inline));
|
let attrs = vec!(cx.attribute(sp, inline));
|
||||||
|
|||||||
Reference in New Issue
Block a user