diff options
| author | Camelid <camelidcamel@gmail.com> | 2021-03-13 14:32:06 -0800 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2021-03-13 16:29:49 -0800 |
| commit | 5134047c4073de04749ddee31623318dbcaaffc1 (patch) | |
| tree | 78b8aa4b6007a8e5cea90647596e45f98f32c417 /compiler | |
| parent | fe64970ed10230376b08c5d4187f9d204295383f (diff) | |
| download | rust-5134047c4073de04749ddee31623318dbcaaffc1.tar.gz rust-5134047c4073de04749ddee31623318dbcaaffc1.zip | |
Add hyphen to "crate level"
"crate level attribute" -> "crate-level attribute"
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_passes/src/check_attr.rs | 4 |
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(); }, |
