about summary refs log tree commit diff
path: root/src/libsyntax_ext/deriving/generic
diff options
context:
space:
mode:
authorDonough Liu <ldm2993593805@163.com>2019-12-21 20:22:46 +0800
committerldm0 <ldm2993593805@163.com>2019-12-22 18:11:47 +0000
commitdecb9592ac7e4409ae83db29ef9e444efacf1897 (patch)
treeeb463614dcab6f6aff20bd73ba68475b8cd8b41b /src/libsyntax_ext/deriving/generic
parent0d2817a439c2ad9fe343f6347eb6d90947893363 (diff)
Fix outdated comment
Logics in libsyntax/ext/expand.rs:MacroExpander::expand() have moved to libsyntax_expand/expand.rs:MacroExpander::fully_expand_fragment()
Diffstat (limited to 'src/libsyntax_ext/deriving/generic')
-rw-r--r--src/libsyntax_ext/deriving/generic/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax_ext/deriving/generic/mod.rs b/src/libsyntax_ext/deriving/generic/mod.rs
index 5fecd13db98..026277413b0 100644
--- a/src/libsyntax_ext/deriving/generic/mod.rs
+++ b/src/libsyntax_ext/deriving/generic/mod.rs
@@ -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;
             }
         }