Make macro_call a ref

This commit is contained in:
Yuri Astrakhan 2024-02-12 13:32:09 -05:00
parent 7c8690ca97
commit 2c3ae882e8

View file

@ -191,7 +191,7 @@ impl<'tcx> LateLintPass<'tcx> for FormatArgs {
let linter = FormatArgsExpr {
cx,
expr,
macro_call,
macro_call: &macro_call,
format_args: &format_args,
ignore_mixed: self.ignore_mixed,
};
@ -210,7 +210,7 @@ impl<'tcx> LateLintPass<'tcx> for FormatArgs {
struct FormatArgsExpr<'a, 'tcx> {
cx: &'a LateContext<'tcx>,
expr: &'tcx Expr<'tcx>,
macro_call: MacroCall,
macro_call: &'a MacroCall,
format_args: &'a rustc_ast::FormatArgs,
ignore_mixed: bool,
}