Skip to content

Commit 29c0be8

Browse files
Fix existing messages in the diag structs
1 parent cf078f2 commit 29c0be8

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

compiler/rustc_codegen_llvm/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,5 +214,5 @@ pub(crate) struct FixedX18InvalidArch<'a> {
214214
}
215215

216216
#[derive(Diagnostic)]
217-
#[diag("`-Zsanitizer-kcfi-arity` requires LLVM 21.0.0 or later.")]
217+
#[diag("`-Zsanitizer-kcfi-arity` requires LLVM 21.0.0 or later")]
218218
pub(crate) struct SanitizerKcfiArityRequiresLLVM2100;

compiler/rustc_codegen_ssa/src/errors.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub(crate) struct MissingQueryDepGraph {
5959

6060
#[derive(Diagnostic)]
6161
#[diag(
62-
"found malformed codegen unit name `{$user_path}`. codegen units names must always start with the name of the crate (`{$crate_name}` in this case)."
62+
"found malformed codegen unit name `{$user_path}`. codegen units names must always start with the name of the crate (`{$crate_name}` in this case)"
6363
)]
6464
pub(crate) struct MalformedCguName {
6565
#[primary_span]
@@ -562,12 +562,12 @@ pub(crate) struct SelfContainedLinkerMissing;
562562

563563
#[derive(Diagnostic)]
564564
#[diag(
565-
"please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option."
565+
"please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option"
566566
)]
567567
pub(crate) struct CheckInstalledVisualStudio;
568568

569569
#[derive(Diagnostic)]
570-
#[diag("VS Code is a different product, and is not sufficient.")]
570+
#[diag("VS Code is a different product, and is not sufficient")]
571571
pub(crate) struct InsufficientVSCodeProduct;
572572

573573
#[derive(Diagnostic)]
@@ -610,13 +610,13 @@ pub(crate) struct LinkerFileStem;
610610

611611
#[derive(Diagnostic)]
612612
#[diag(
613-
"link against the following native artifacts when linking against this static library. The order and any duplication can be significant on some platforms."
613+
"link against the following native artifacts when linking against this static library. The order and any duplication can be significant on some platforms"
614614
)]
615615
pub(crate) struct StaticLibraryNativeArtifacts;
616616

617617
#[derive(Diagnostic)]
618618
#[diag(
619-
"native artifacts to link against have been written to {$path}. The order and any duplication can be significant on some platforms."
619+
"native artifacts to link against have been written to {$path}. The order and any duplication can be significant on some platforms"
620620
)]
621621
pub(crate) struct StaticLibraryNativeArtifactsToFile<'a> {
622622
pub path: &'a Path,

compiler/rustc_driver_impl/src/session_diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub(crate) struct RlinkCorruptFile<'a> {
5151
}
5252

5353
#[derive(Diagnostic)]
54-
#[diag("the compiler unexpectedly panicked. this is a bug.")]
54+
#[diag("the compiler unexpectedly panicked. This is a bug")]
5555
pub(crate) struct Ice;
5656

5757
#[derive(Diagnostic)]

compiler/rustc_hir_typeck/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ pub(crate) struct CastThinPointerToWidePointer<'tcx> {
11451145
pub expr_ty: Ty<'tcx>,
11461146
pub cast_ty: Ty<'tcx>,
11471147
#[note(
1148-
"Thin pointers are \"simple\" pointers: they are purely a reference to a
1148+
"thin pointers are \"simple\" pointers: they are purely a reference to a
11491149
memory address.
11501150
11511151
Wide pointers are pointers referencing \"Dynamically Sized Types\" (also

compiler/rustc_incremental/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ pub(crate) struct DeleteWorkProduct<'a> {
281281

282282
#[derive(Diagnostic)]
283283
#[diag(
284-
"corrupt incremental compilation artifact found at `{$path}`. This file will automatically be ignored and deleted. If you see this message repeatedly or can provoke it without manually manipulating the compiler's artifacts, please file an issue. The incremental compilation system relies on hardlinks and filesystem locks behaving correctly, and may not deal well with OS crashes, so whatever information you can provide about your filesystem or other state may be very relevant."
284+
"corrupt incremental compilation artifact found at `{$path}`. This file will automatically be ignored and deleted. If you see this message repeatedly or can provoke it without manually manipulating the compiler's artifacts, please file an issue. The incremental compilation system relies on hardlinks and filesystem locks behaving correctly, and may not deal well with OS crashes, so whatever information you can provide about your filesystem or other state may be very relevant"
285285
)]
286286
pub(crate) struct CorruptFile<'a> {
287287
pub path: &'a Path,

0 commit comments

Comments
 (0)