diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-06-27 17:48:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-27 17:48:47 +0200 |
| commit | adc3ae24d6a53466a594bf181c6fc135bd24d1c8 (patch) | |
| tree | 6123b3988ba198472870c7fbe725a34860648bff | |
| parent | 4571be358bfcb50c30f0d6bd15835b44cd80b88b (diff) | |
| parent | 8352c02fc29720d7bed8b0e59d7bc2ffae3c4f00 (diff) | |
| download | rust-adc3ae24d6a53466a594bf181c6fc135bd24d1c8.tar.gz rust-adc3ae24d6a53466a594bf181c6fc135bd24d1c8.zip | |
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.
| -rw-r--r-- | compiler/rustc_ast_passes/src/errors.rs | 7 | ||||
| -rw-r--r-- | compiler/rustc_infer/src/infer/error_reporting/note_and_explain.rs | 4 |
2 files changed, 2 insertions, 9 deletions
diff --git a/compiler/rustc_ast_passes/src/errors.rs b/compiler/rustc_ast_passes/src/errors.rs index 82fe2a21d08..ab8015c4a43 100644 --- a/compiler/rustc_ast_passes/src/errors.rs +++ b/compiler/rustc_ast_passes/src/errors.rs @@ -78,13 +78,6 @@ pub struct ForbiddenLifetimeBound { } #[derive(Diagnostic)] -#[diag(ast_passes_forbidden_non_lifetime_param)] -pub struct ForbiddenNonLifetimeParam { - #[primary_span] - pub spans: Vec<Span>, -} - -#[derive(Diagnostic)] #[diag(ast_passes_fn_param_too_many)] pub struct FnParamTooMany { #[primary_span] diff --git a/compiler/rustc_infer/src/infer/error_reporting/note_and_explain.rs b/compiler/rustc_infer/src/infer/error_reporting/note_and_explain.rs index 2a32f0b5047..7293de4c6c5 100644 --- a/compiler/rustc_infer/src/infer/error_reporting/note_and_explain.rs +++ b/compiler/rustc_infer/src/infer/error_reporting/note_and_explain.rs @@ -139,7 +139,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> { tcx, generics, diag, - &format!("{}", proj.self_ty()), + &proj.self_ty().to_string(), &path, None, matching_span, @@ -153,7 +153,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> { tcx, generics, diag, - &format!("{}", proj.self_ty()), + &proj.self_ty().to_string(), &path, None, matching_span, |
