Skip to content

Commit 0a82e9e

Browse files
Update text/0000-const-trait-impls.md
Co-authored-by: Josh Triplett <[email protected]>
1 parent 58343dd commit 0a82e9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

text/0000-const-trait-impls.md

+4
Original file line numberDiff line numberDiff line change
@@ -1043,3 +1043,7 @@ impl RngCore for CountingRng {
10431043

10441044
and use it in non-generic code.
10451045
It is not clear this is doable soundly for generic methods.
1046+
1047+
## Macro matcher
1048+
1049+
In the future, we may want to provide a macro matcher for this optional component of a function declaration or trait declaration, similar to `:vis` for an optional visibility. This would allow macros to match it conveniently, and may encourage forwards compatibility with future things in the same category. However, we should not add such a matcher right away, until we have a clearer picture of what else we may add to the same category.

0 commit comments

Comments
 (0)