Skip to content

Commit decb959

Browse files
committed
Fix outdated comment
Logics in libsyntax/ext/expand.rs:MacroExpander::expand() have moved to libsyntax_expand/expand.rs:MacroExpander::fully_expand_fragment()
1 parent 0d2817a commit decb959

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/libsyntax_ext/deriving/generic/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,8 @@ impl<'a> TraitDef<'a> {
410410
_ => {
411411
// Non-ADT derive is an error, but it should have been
412412
// set earlier; see
413-
// libsyntax/ext/expand.rs:MacroExpander::expand()
413+
// libsyntax_expand/expand.rs:MacroExpander::fully_expand_fragment()
414+
// libsyntax_expand/base.rs:Annotatable::derive_allowed()
414415
return;
415416
}
416417
};
@@ -461,7 +462,8 @@ impl<'a> TraitDef<'a> {
461462
_ => {
462463
// Non-Item derive is an error, but it should have been
463464
// set earlier; see
464-
// libsyntax/ext/expand.rs:MacroExpander::expand()
465+
// libsyntax_expand/expand.rs:MacroExpander::fully_expand_fragment()
466+
// libsyntax_expand/base.rs:Annotatable::derive_allowed()
465467
return;
466468
}
467469
}

src/libsyntax_ext/deriving/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ fn inject_impl_of_structural_trait(cx: &mut ExtCtxt<'_>,
8989
_ => {
9090
// Non-Item derive is an error, but it should have been
9191
// set earlier; see
92-
// libsyntax/ext/expand.rs:MacroExpander::expand()
92+
// libsyntax_expand/expand.rs:MacroExpander::fully_expand_fragment()
93+
// libsyntax_expand/base.rs:Annotatable::derive_allowed()
9394
return;
9495
}
9596
};

0 commit comments

Comments
 (0)