about summary refs log tree commit diff
path: root/compiler/rustc_error_codes
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-10-08 14:06:56 +0200
committerRalf Jung <post@ralfj.de>2024-10-22 07:37:54 +0100
commit46ce5cbf339e1ea84d2b28ac04369084b9f2d948 (patch)
tree2feba5fd8bcd636d45364e65ebe0a32e6ba0f4fd /compiler/rustc_error_codes
parent3ec4308f6cb4bba3140d736d9ebd53b234fa7df8 (diff)
downloadrust-46ce5cbf339e1ea84d2b28ac04369084b9f2d948.tar.gz
rust-46ce5cbf339e1ea84d2b28ac04369084b9f2d948.zip
terminology: #[feature] *enables* a feature (instead of "declaring" or "activating" it)
Diffstat (limited to 'compiler/rustc_error_codes')
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0636.md4
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0705.md2
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0636.md b/compiler/rustc_error_codes/src/error_codes/E0636.md
index 57cf72db556..41fd701a8ed 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0636.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0636.md
@@ -1,9 +1,9 @@
-A `#![feature]` attribute was declared multiple times.
+The same feature is enabled multiple times with `#![feature]` attributes
 
 Erroneous code example:
 
 ```compile_fail,E0636
 #![allow(stable_features)]
 #![feature(rust1)]
-#![feature(rust1)] // error: the feature `rust1` has already been declared
+#![feature(rust1)] // error: the feature `rust1` has already been enabled
 ```
diff --git a/compiler/rustc_error_codes/src/error_codes/E0705.md b/compiler/rustc_error_codes/src/error_codes/E0705.md
index 317f3a47eff..e7d7d74cc4c 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0705.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0705.md
@@ -1,6 +1,6 @@
 #### Note: this error code is no longer emitted by the compiler.
 
-A `#![feature]` attribute was declared for a feature that is stable in the
+A `#![feature]` attribute was used for a feature that is stable in the
 current edition, but not in all editions.
 
 Erroneous code example: