Skip to content

Commit 8ce52b7

Browse files
authored
Rollup merge of rust-lang#109317 - ehuss:discriminant-link-fix, r=Nilstrieb
Update links for custom discriminants. The discriminant documentation was updated in rust-lang/reference#1055 which changed the layout a bit. This updates the links to the updated locations.
2 parents af3bd22 + 572c56c commit 8ce52b7

File tree

1 file changed

+4
-5
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+4
-5
lines changed

compiler/rustc_error_codes/src/error_codes/E0080.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ or causing an integer overflow are two ways to induce this error.
1515

1616
Ensure that the expressions given can be evaluated as the desired integer type.
1717

18-
See the [Custom Discriminants][custom-discriminants] section of the Reference
19-
for more information about setting custom integer types on fieldless enums
20-
using the [`repr` attribute][repr-attribute].
18+
See the [Discriminants] section of the Reference for more information about
19+
setting custom integer types on enums using the [`repr` attribute][repr-attribute].
2120

22-
[custom-discriminants]: https://doc.rust-lang.org/reference/items/enumerations.html#custom-discriminant-values-for-field-less-enumerations
23-
[repr-attribute]: https://doc.rust-lang.org/reference/type-layout.html#reprc-enums
21+
[discriminants]: https://doc.rust-lang.org/reference/items/enumerations.html#discriminants
22+
[repr-attribute]: https://doc.rust-lang.org/reference/type-layout.html#representations

0 commit comments

Comments
 (0)