This commit is contained in:
Matthias Krüger
2019-10-28 09:02:48 +01:00
parent 66df92aeba
commit ece5f862c4
4 changed files with 3 additions and 6 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_expand::hygiene::MacroKind;
use syntax_pos::hygiene::MacroKind;
if expr.span.from_expansion() {
let data = expr.span.ctxt().outer_expn_data();