-
Notifications
You must be signed in to change notification settings - Fork 13.4k
add static_in_const feature gate #36332
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
also updates tests and deletes the spurious .bk files I inadvertently added last time.
self.tcx | ||
.sess | ||
.struct_span_warn(span, | ||
"This needs a `'static` lifetime or the \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: it should be this
not This
, and this should be an error :)
@chriskrycho I even added a sentence about the feature gate to the reference. |
@llogiq awesome. I'll see if I can add the docs for the feature itself over the weekend! |
📌 Commit 76a2f9f has been approved by |
Thank you @nikomatsakis for the awesome mentoring. |
add static_in_const feature gate also updates tests and deletes the spurious .bk files I inadvertently added last time. r? @nikomatsakis
also updates tests and deletes the spurious .bk files I inadvertently added last time.
r? @nikomatsakis