-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document const {}
syntax for std::thread_local
.
#110620
Conversation
r? @thomcc (rustbot has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
I'm marking it as |
Also see #109908, which documents the same thing but is slightly more verbose. |
I think @m-ou-se's suggestion is worth taking, but r=me with that |
b23fa6f
to
3000818
Compare
what do we do with #109908 now? should I close mine or should we just merge mine because it's ready now? |
This comment has been minimized.
This comment has been minimized.
It exists and is pretty cool. More people should use it.
3000818
to
b56d85d
Compare
It's been two weeks on the other PR and while it's a big unfortunate that we have two PRs doing this (I did check the tracking issue but the other PR didn't backlink anything) this PR is ready while the other one hasn't been. |
Rollup of 7 pull requests Successful merges: - rust-lang#109702 (configure --set support list as arguments) - rust-lang#110620 (Document `const {}` syntax for `std::thread_local`.) - rust-lang#110721 (format panic message only once) - rust-lang#110881 (refactor(docs): remove macro resolution fallback) - rust-lang#110893 (remove inline const deadcode in typeck) - rust-lang#110898 (Remove unused std::sys_common::thread_local_key::Key) - rust-lang#110909 (Skip `rustc` version detection on macOS) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This is newly documented but not new: rust-lang/rust#110620
It exists and is pretty cool. More people should use it.
It was added in #83416 and stabilized in #91355 with the tracking issue #84223.