1
Fork 0

Remove redundant argument from subdiagnostic method

This commit is contained in:
Oli Scherer 2024-06-18 11:10:18 +00:00
parent 7ba82d61eb
commit 3f34196839
38 changed files with 361 additions and 542 deletions

View file

@ -1294,12 +1294,12 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
// exclude decl_macro
if self.get_macro_by_def_id(def_id).macro_rules =>
{
err.subdiagnostic(self.dcx(), ConsiderAddingMacroExport {
err.subdiagnostic( ConsiderAddingMacroExport {
span: binding.span,
});
}
_ => {
err.subdiagnostic(self.dcx(), ConsiderMarkingAsPub {
err.subdiagnostic( ConsiderMarkingAsPub {
span: import.span,
ident,
});