Skip to content

Commit 6c6c338

Browse files
committed
Remove needless attrs reference
It's a little tricky to follow, but if you trace the code paths for inline modules and for external modules, this value is never actually used. This makes two functions more similar so that they can be deduped in a later commit.
1 parent c7df450 commit 6c6c338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl<'ast, 'sess, 'c> ModResolver<'ast, 'sess> {
212212
span,
213213
Some(Cow::Borrowed(sub_mod_kind)),
214214
Cow::Owned(ThinVec::new()),
215-
Cow::Borrowed(&item.attrs),
215+
Cow::Owned(ast::AttrVec::new()),
216216
),
217217
)?;
218218
}

0 commit comments

Comments
 (0)