Skip to content

Rename internal module from statik to no_threads #139121

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

Merged
merged 1 commit into from
Apr 5, 2025

Conversation

thaliaarchi
Copy link
Contributor

@thaliaarchi thaliaarchi commented Mar 29, 2025

This module is named in reference to the keyword, but the term is somewhat overloaded. Rename it to more clearly describe it and avoid the misspelling.

@rustbot
Copy link
Collaborator

rustbot commented Mar 29, 2025

r? @Noratrieb

rustbot has assigned @Noratrieb.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Mar 29, 2025
@Noratrieb
Copy link
Member

Noratrieb commented Mar 31, 2025

How about renaming it to "global"? "static" made me think of linker based TLS (in contrast to runtime created TLS) first before realizing it's just global for single threaded.

Or maybe even no_threads.

@thaliaarchi
Copy link
Contributor Author

I think no_threads is a fine name. I chose statics, though, because its doc comment says “statics”:

//! On some targets like wasm there's no threads, so no need to generate
//! thread locals and we can instead just use plain statics!

@Noratrieb
Copy link
Member

On the inside it makes sense, but when just looking at the filename, no_threads is a lot clearer. Static is such an overloaded and confusing word that it's best avoided.

This module is named in reference to the keyword, but the term is
somewhat overloaded. Rename it to more clearly describe it and avoid the
misspelling.
@thaliaarchi thaliaarchi changed the title Rename internal module from statik to statics Rename internal module from statik to no_threads Apr 5, 2025
@thaliaarchi thaliaarchi force-pushed the rename-thread_local-statik branch from a5444b3 to 9b889e9 Compare April 5, 2025 03:37
@thaliaarchi
Copy link
Contributor Author

I've updated it for that change.

@Noratrieb
Copy link
Member

awesome!
@bors r+ rollup meow

@bors
Copy link
Collaborator

bors commented Apr 5, 2025

📌 Commit 9b889e9 has been approved by Noratrieb

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 5, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 5, 2025
…iaskrgr

Rollup of 5 pull requests

Successful merges:

 - rust-lang#136877 (Fix missing const for inherent pointer `replace` methods)
 - rust-lang#138797 (Fix `ProvenVia` for global where clauses)
 - rust-lang#139121 (Rename internal module from `statik` to `no_threads`)
 - rust-lang#139319 (StableMIR: Prepare for refactoring)
 - rust-lang#139404 (Small smir cleanup)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 527725b into rust-lang:master Apr 5, 2025
6 checks passed
@rustbot rustbot added this to the 1.88.0 milestone Apr 5, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Apr 5, 2025
Rollup merge of rust-lang#139121 - thaliaarchi:rename-thread_local-statik, r=Noratrieb

Rename internal module from `statik` to `no_threads`

This module is named in reference to the keyword, but the term is somewhat overloaded. Rename it to more clearly describe it and avoid the misspelling.
@thaliaarchi thaliaarchi deleted the rename-thread_local-statik branch April 5, 2025 23:28
github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request Apr 10, 2025
…atik, r=Noratrieb

Rename internal module from `statik` to `no_threads`

This module is named in reference to the keyword, but the term is somewhat overloaded. Rename it to more clearly describe it and avoid the misspelling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants