Rollup merge of #113096 - TaKO8Ki:remove-unused-struct, r=oli-obk

Remove unused struct and tweak format macro uses

This pul request removes an unused struct and tweaks `format!` uses.
This commit is contained in:
Matthias Krüger 2023-06-27 17:48:47 +02:00 committed by GitHub
commit adc3ae24d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View File

@ -77,13 +77,6 @@ pub struct ForbiddenLifetimeBound {
pub spans: Vec<Span>, pub spans: Vec<Span>,
} }
#[derive(Diagnostic)]
#[diag(ast_passes_forbidden_non_lifetime_param)]
pub struct ForbiddenNonLifetimeParam {
#[primary_span]
pub spans: Vec<Span>,
}
#[derive(Diagnostic)] #[derive(Diagnostic)]
#[diag(ast_passes_fn_param_too_many)] #[diag(ast_passes_fn_param_too_many)]
pub struct FnParamTooMany { pub struct FnParamTooMany {

View File

@ -139,7 +139,7 @@ pub fn note_and_explain_type_err(
tcx, tcx,
generics, generics,
diag, diag,
&format!("{}", proj.self_ty()), &proj.self_ty().to_string(),
&path, &path,
None, None,
matching_span, matching_span,
@ -153,7 +153,7 @@ pub fn note_and_explain_type_err(
tcx, tcx,
generics, generics,
diag, diag,
&format!("{}", proj.self_ty()), &proj.self_ty().to_string(),
&path, &path,
None, None,
matching_span, matching_span,