diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-07-15 19:55:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-15 19:55:07 -0400 |
| commit | 4efdff7dbbfd4bd3051b88220abf35fcf1bac95e (patch) | |
| tree | cb4169266de785998c33b9f6cfdbcac84d569fc2 /src/libsyntax | |
| parent | ee8194002e47b1a6103c7a8f5d592c625b5efba7 (diff) | |
| parent | b7459f329f3a0a601cb1852358a85c6edd3057ed (diff) | |
| download | rust-4efdff7dbbfd4bd3051b88220abf35fcf1bac95e.tar.gz rust-4efdff7dbbfd4bd3051b88220abf35fcf1bac95e.zip | |
Rollup merge of #62646 - estebank:wording, r=petrochenkov
Tweak wording in feature gate errors
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index e3628d908fb..ed7d6c35fb9 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -1451,7 +1451,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ template!(Word), Gated(Stability::Unstable, sym::dropck_eyepatch, - "may_dangle has unstable semantics and may be removed in the future", + "`may_dangle` has unstable semantics and may be removed in the future", cfg_fn!(dropck_eyepatch))), (sym::unwind, Whitelisted, template!(List: "allowed|aborts"), Gated(Stability::Unstable, sym::unwind_attributes, @@ -1693,8 +1693,8 @@ impl<'a> Context<'a> { // Only run the custom attribute lint during regular feature gate // checking. Macro gating runs before the plugin attributes are // registered, so we skip this in that case. - let msg = format!("The attribute `{}` is currently unknown to the compiler and \ - may have meaning added to it in the future", attr.path); + let msg = format!("the attribute `{}` is currently unknown to the compiler and \ + may have meaning added to it in the future", attr.path); gate_feature!(self, custom_attribute, attr.span, &msg); } } |
