about summary refs log tree commit diff
path: root/compiler/rustc_error_codes/src
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2023-01-19 08:57:26 -0800
committerEric Huss <eric@huss.org>2023-03-18 10:22:37 -0700
commit572c56cb7e4c31e15d36fabe4e15cff6aa8ce405 (patch)
tree50b2a383a8b63a5044a27af026b9593658a3696b /compiler/rustc_error_codes/src
parentf177b7cb91acd9debd1ed974e6521edb2ab6b097 (diff)
downloadrust-572c56cb7e4c31e15d36fabe4e15cff6aa8ce405.tar.gz
rust-572c56cb7e4c31e15d36fabe4e15cff6aa8ce405.zip
Update links for custom discriminants.
Diffstat (limited to 'compiler/rustc_error_codes/src')
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0080.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0080.md b/compiler/rustc_error_codes/src/error_codes/E0080.md
index 7b1bbde6140..71d6c6fe2ef 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0080.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0080.md
@@ -15,9 +15,8 @@ or causing an integer overflow are two ways to induce this error.
 
 Ensure that the expressions given can be evaluated as the desired integer type.
 
-See the [Custom Discriminants][custom-discriminants] section of the Reference
-for more information about setting custom integer types on fieldless enums
-using the [`repr` attribute][repr-attribute].
+See the [Discriminants] section of the Reference for more information about
+setting custom integer types on enums using the [`repr` attribute][repr-attribute].
 
-[custom-discriminants]: https://doc.rust-lang.org/reference/items/enumerations.html#custom-discriminant-values-for-field-less-enumerations
-[repr-attribute]: https://doc.rust-lang.org/reference/type-layout.html#reprc-enums
+[discriminants]: https://doc.rust-lang.org/reference/items/enumerations.html#discriminants
+[repr-attribute]: https://doc.rust-lang.org/reference/type-layout.html#representations