about summary refs log tree commit diff
path: root/compiler/rustc_passes/src
diff options
context:
space:
mode:
authorCamelid <camelidcamel@gmail.com>2021-03-13 14:32:06 -0800
committerCamelid <camelidcamel@gmail.com>2021-03-13 16:29:49 -0800
commit5134047c4073de04749ddee31623318dbcaaffc1 (patch)
tree78b8aa4b6007a8e5cea90647596e45f98f32c417 /compiler/rustc_passes/src
parentfe64970ed10230376b08c5d4187f9d204295383f (diff)
downloadrust-5134047c4073de04749ddee31623318dbcaaffc1.tar.gz
rust-5134047c4073de04749ddee31623318dbcaaffc1.zip
Add hyphen to "crate level"
"crate level attribute" -> "crate-level attribute"
Diffstat (limited to 'compiler/rustc_passes/src')
-rw-r--r--compiler/rustc_passes/src/check_attr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs
index a1871e796d8..c89518df007 100644
--- a/compiler/rustc_passes/src/check_attr.rs
+++ b/compiler/rustc_passes/src/check_attr.rs
@@ -520,7 +520,7 @@ impl CheckAttrVisitor<'tcx> {
                 .struct_span_err(
                     meta.span(),
                     &format!(
-                        "`#![doc({} = \"...\")]` isn't allowed as a crate level attribute",
+                        "`#![doc({} = \"...\")]` isn't allowed as a crate-level attribute",
                         attr_name,
                     ),
                 )
@@ -559,7 +559,7 @@ impl CheckAttrVisitor<'tcx> {
                                 |lint| {
                                     lint.build(
                                         "`#![doc(test(...)]` is only allowed \
-                                         as a crate level attribute",
+                                         as a crate-level attribute",
                                     )
                                     .emit();
                                 },