Remove a redundant function argument

This commit is contained in:
Oli Scherer 2022-12-09 22:10:52 +00:00
parent 8f132d8549
commit 9fb91b8742
2 changed files with 3 additions and 10 deletions

View file

@ -878,12 +878,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
item: &ast::Item,
edition: Edition,
) -> (SyntaxExtension, Vec<(usize, Span)>) {
let (mut result, mut rule_spans) = compile_declarative_macro(
&self.tcx.sess,
self.tcx.sess.features_untracked(),
item,
edition,
);
let (mut result, mut rule_spans) = compile_declarative_macro(self.tcx.sess, item, edition);
if let Some(builtin_name) = result.builtin_name {
// The macro was marked with `#[rustc_builtin_macro]`.