Skip to content

Commit fa15abd

Browse files
committed
Add defaulted generic parameters for deprecated
Support for this was added in rust-lang/rust#77118
1 parent 2222e68 commit fa15abd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/attributes/diagnostics.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ The `deprecated` attribute may be applied to:
335335
- [struct fields]
336336
- [external block items]
337337
- [macro definitions]
338+
- [defaulted generic parameters]
338339

339340
It cannot be applied to [trait implementation items][trait-impl].
340341

@@ -741,6 +742,7 @@ The first error message includes a somewhat confusing error message about the re
741742
[block expression]: ../expressions/block-expr.md
742743
[call expression]: ../expressions/call-expr.md
743744
[crate root]: ../crates-and-source-files.md
745+
[defaulted generic parameters]: ../items/generics.md
744746
[dyn trait]: ../types/trait-object.md
745747
[enum variants]: ../items/enumerations.md
746748
[enum]: ../items/enumerations.md

0 commit comments

Comments
 (0)