mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user