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
2 changed files with 6 additions and 3 deletions
|
|
@ -410,7 +410,8 @@ impl<'a> TraitDef<'a> {
|
|||
_ => {
|
||||
// Non-ADT derive is an error, but it should have been
|
||||
// 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;
|
||||
}
|
||||
};
|
||||
|
|
@ -461,7 +462,8 @@ impl<'a> TraitDef<'a> {
|
|||
_ => {
|
||||
// Non-Item derive is an error, but it should have been
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -89,7 +89,8 @@ fn inject_impl_of_structural_trait(cx: &mut ExtCtxt<'_>,
|
|||
_ => {
|
||||
// Non-Item derive is an error, but it should have been
|
||||
// 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;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue