syntax::ext -> syntax_expand

This commit is contained in:
Manish Goregaokar
2019-10-17 15:47:28 -07:00
parent 4a388e1fd5
commit fcad3cb9ea
4 changed files with 6 additions and 4 deletions

View File

@@ -596,7 +596,7 @@ fn is_used(cx: &LateContext<'_, '_>, expr: &Expr) -> bool {
/// Tests whether an expression is in a macro expansion (e.g., something
/// generated by `#[derive(...)]` or the like).
fn in_attributes_expansion(expr: &Expr) -> bool {
use syntax::ext::hygiene::MacroKind;
use syntax_expand::hygiene::MacroKind;
if expr.span.from_expansion() {
let data = expr.span.ctxt().outer_expn_data();