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 @@ pub fn expand_ext(self,
|
||||
_ => {
|
||||
// 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 @@ pub fn expand_ext(self,
|
||||
_ => {
|
||||
// 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…
Reference in New Issue
Block a user