diff options
| author | bors <bors@rust-lang.org> | 2024-11-18 04:17:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-11-18 04:17:11 +0000 |
| commit | bf6adec108e83c5ddfcbb443a9177203db5eb945 (patch) | |
| tree | 7dad50a965a6cd5b4f22936421ade7a3083a7107 /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | 3fb7e441aecc3c054d71eb4d752d06e7776e8888 (diff) | |
| parent | f6374b4b7135479ccfe6751f1ed45ba5a95910f0 (diff) | |
| download | rust-bf6adec108e83c5ddfcbb443a9177203db5eb945.tar.gz rust-bf6adec108e83c5ddfcbb443a9177203db5eb945.zip | |
Auto merge of #133152 - jhpratt:rollup-wkqs5ud, r=jhpratt
Rollup of 7 pull requests Successful merges: - #132795 (Check `use<..>` in RPITIT for refinement) - #132944 (add parentheses when unboxing suggestion needed) - #132993 (Make rustc consider itself a stable compiler when `RUSTC_BOOTSTRAP=-1`) - #133130 (`suggest_borrow_generic_arg`: instantiate clauses properly) - #133133 (rustdoc-search: add standalone trailing `::` test) - #133143 (Diagnostics for let mut in item context) - #133147 (Fixup some test directives) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/errors.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors.rs b/compiler/rustc_hir_analysis/src/errors.rs index a92a5e4278c..07d3273b09c 100644 --- a/compiler/rustc_hir_analysis/src/errors.rs +++ b/compiler/rustc_hir_analysis/src/errors.rs @@ -1153,6 +1153,16 @@ pub(crate) struct ReturnPositionImplTraitInTraitRefined<'tcx> { pub return_ty: Ty<'tcx>, } +#[derive(LintDiagnostic)] +#[diag(hir_analysis_rpitit_refined_lifetimes)] +#[note] +#[note(hir_analysis_feedback_note)] +pub(crate) struct ReturnPositionImplTraitInTraitRefinedLifetimes { + #[suggestion(applicability = "maybe-incorrect", code = "{suggestion}")] + pub suggestion_span: Span, + pub suggestion: String, +} + #[derive(Diagnostic)] #[diag(hir_analysis_inherent_ty_outside, code = E0390)] #[help] |
