Update error message for doc(keyword)
This commit is contained in:
parent
2ba483883e
commit
3c77b56d94
|
@ -328,7 +328,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
|
|||
);
|
||||
|
||||
if nested_meta.has_name(sym::keyword) {
|
||||
let msg = concat!("`#[doc(keyword)]` is meant for internal use only");
|
||||
let msg = "`#[doc(keyword)]` is meant for internal use only";
|
||||
gate_feature_post!(self, rustdoc_internals, attr.span, msg);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#[doc(keyword = "match")] //~ ERROR: `#[doc(keyword)]` is experimental
|
||||
#[doc(keyword = "match")] //~ ERROR: `#[doc(keyword)]` is meant for internal use only
|
||||
/// wonderful
|
||||
mod foo {}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
error[E0658]: `#[doc(keyword)]` is experimental
|
||||
error[E0658]: `#[doc(keyword)]` is meant for internal use only
|
||||
--> $DIR/feature-gate-rustdoc_internals.rs:1:1
|
||||
|
|
||||
LL | #[doc(keyword = "match")]
|
||||
|
|
Loading…
Reference in a new issue