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:
commit
adc3ae24d6
@ -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 {
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user