diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-02-26 12:04:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-26 12:04:58 +0100 |
| commit | b27f37da07c8bb49a4c71970a55b5d2ec209bef7 (patch) | |
| tree | a6863e71db97011dce952933c0bae8275b3d52e9 /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | 3d2319f1d636f029a1c01f95d732726dd3ec12c7 (diff) | |
| parent | e5d1fcd535cf664f8157a6208797a2df3c5fd17c (diff) | |
| download | rust-b27f37da07c8bb49a4c71970a55b5d2ec209bef7.tar.gz rust-b27f37da07c8bb49a4c71970a55b5d2ec209bef7.zip | |
Rollup merge of #108337 - tshepang:translatable-hir-analysis, r=cjgillot
hir-analysis: make a helpful note
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/errors.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors.rs b/compiler/rustc_hir_analysis/src/errors.rs index 309d02052b7..a566e73912e 100644 --- a/compiler/rustc_hir_analysis/src/errors.rs +++ b/compiler/rustc_hir_analysis/src/errors.rs @@ -329,8 +329,9 @@ pub(crate) struct WhereClauseOnMain { #[diag(hir_analysis_track_caller_on_main)] pub(crate) struct TrackCallerOnMain { #[primary_span] + #[suggestion(applicability = "maybe-incorrect", code = "")] pub span: Span, - #[label] + #[label(hir_analysis_track_caller_on_main)] pub annotated: Span, } |
