Fix outdated comment
Logics in libsyntax/ext/expand.rs:MacroExpander::expand() have moved to libsyntax_expand/expand.rs:MacroExpander::fully_expand_fragment()
This commit is contained in:
parent
0d2817a439
commit
decb9592ac
@ -410,7 +410,8 @@ impl<'a> TraitDef<'a> {
|
|||||||
_ => {
|
_ => {
|
||||||
// Non-ADT derive is an error, but it should have been
|
// Non-ADT derive is an error, but it should have been
|
||||||
// set earlier; see
|
// set earlier; see
|
||||||
// libsyntax/ext/expand.rs:MacroExpander::expand()
|
// libsyntax_expand/expand.rs:MacroExpander::fully_expand_fragment()
|
||||||
|
// libsyntax_expand/base.rs:Annotatable::derive_allowed()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -461,7 +462,8 @@ impl<'a> TraitDef<'a> {
|
|||||||
_ => {
|
_ => {
|
||||||
// Non-Item derive is an error, but it should have been
|
// Non-Item derive is an error, but it should have been
|
||||||
// set earlier; see
|
// set earlier; see
|
||||||
// libsyntax/ext/expand.rs:MacroExpander::expand()
|
// libsyntax_expand/expand.rs:MacroExpander::fully_expand_fragment()
|
||||||
|
// libsyntax_expand/base.rs:Annotatable::derive_allowed()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,8 @@ fn inject_impl_of_structural_trait(cx: &mut ExtCtxt<'_>,
|
|||||||
_ => {
|
_ => {
|
||||||
// Non-Item derive is an error, but it should have been
|
// Non-Item derive is an error, but it should have been
|
||||||
// set earlier; see
|
// set earlier; see
|
||||||
// libsyntax/ext/expand.rs:MacroExpander::expand()
|
// libsyntax_expand/expand.rs:MacroExpander::fully_expand_fragment()
|
||||||
|
// libsyntax_expand/base.rs:Annotatable::derive_allowed()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user