Move #[cfg(test)] modules into separate files to save recompiling the std crate#75979
Move #[cfg(test)] modules into separate files to save recompiling the std crate#75979bors merged 2 commits intorust-lang:masterfrom
#[cfg(test)] modules into separate files to save recompiling the std crate#75979Conversation
|
This is highly conflict to merge with other PRs. |
5b2cbad to
2af6064
Compare
|
Nice, successfully compiled on x86_64-linux-gnu. |
#[cfg(test)] modules into a separate files to save recompiling the std crate#[cfg(test)] modules into separate files to save recompiling the std crate
|
☔ The latest upstream changes (presumably #72808) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Rebased. |
Mark-Simulacrum
left a comment
There was a problem hiding this comment.
I would prefer to omit the cloudabi changes from this PR.
Since git and other tooling presumably won't be able to follow this extraction anyway, could we squash the formatting changes in as well? That'll avoid extra noise in the commit log.
That's what I thought. Done now.
That's why I prefer an infra member or compiler member doing this change instead of me. @rustbot modify labels: -S-waiting-on-author +S-waiting-on-review |
Also doing fmt inplace as requested.
Also doing fmt inplace as requested.
|
@bors r+ Okay, seems good. |
|
📌 Commit a4e926d has been approved by |
|
☀️ Test successful - checks-actions, checks-azure |
In rust-lang#75979 several inlined modules were split out into multiple files. This PR keeps the multiple files but moves a few things around to organize things in a coherent way.
…nagisa Rearrange SGX split module files In rust-lang#75979 several inlined modules were split out into multiple files. This PR keeps the multiple files but moves a few things around to organize things in a coherent way.
…nagisa Rearrange SGX split module files In rust-lang#75979 several inlined modules were split out into multiple files. This PR keeps the multiple files but moves a few things around to organize things in a coherent way.
…nagisa Rearrange SGX split module files In rust-lang#75979 several inlined modules were split out into multiple files. This PR keeps the multiple files but moves a few things around to organize things in a coherent way.
Implements an accepted proposal: rust-lang/compiler-team#344
Some notes for reviewers:
mod testsnested inmod fooinmod bar, I movefooto a new file,testsis a new file in foo: For example library/std/src/sys/sgx/abi/tls.rsmod test(notmod tests) also is moved.mod benchesare moved.mod testsis placed before anyusestatements: The topic is discussed in https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Code.20Style.20processignore-tidy-filelengthanymore.