diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2023-02-26 00:01:44 +0200 |
|---|---|---|
| committer | Tshepang Mbambo <tshepang@gmail.com> | 2023-02-26 00:01:44 +0200 |
| commit | e5d1fcd535cf664f8157a6208797a2df3c5fd17c (patch) | |
| tree | 0d7e44e39ace4fb70996e5d33e09c16546bc850e /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | 31448badfd74ea72d2c8622cc60d3dca889ef7d4 (diff) | |
| download | rust-e5d1fcd535cf664f8157a6208797a2df3c5fd17c.tar.gz rust-e5d1fcd535cf664f8157a6208797a2df3c5fd17c.zip | |
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, } |
