Skip to content

Commit adc3ae2

Browse files
authored
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.
2 parents 4571be3 + 8352c02 commit adc3ae2

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

compiler/rustc_ast_passes/src/errors.rs

-7
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,6 @@ pub struct ForbiddenLifetimeBound {
7777
pub spans: Vec<Span>,
7878
}
7979

80-
#[derive(Diagnostic)]
81-
#[diag(ast_passes_forbidden_non_lifetime_param)]
82-
pub struct ForbiddenNonLifetimeParam {
83-
#[primary_span]
84-
pub spans: Vec<Span>,
85-
}
86-
8780
#[derive(Diagnostic)]
8881
#[diag(ast_passes_fn_param_too_many)]
8982
pub struct FnParamTooMany {

compiler/rustc_infer/src/infer/error_reporting/note_and_explain.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
139139
tcx,
140140
generics,
141141
diag,
142-
&format!("{}", proj.self_ty()),
142+
&proj.self_ty().to_string(),
143143
&path,
144144
None,
145145
matching_span,
@@ -153,7 +153,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
153153
tcx,
154154
generics,
155155
diag,
156-
&format!("{}", proj.self_ty()),
156+
&proj.self_ty().to_string(),
157157
&path,
158158
None,
159159
matching_span,

0 commit comments

Comments
 (0)