-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Move #[cfg(test)]
modules into separate files to save recompiling the std
crate
#75979
Conversation
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. |
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.
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 tests
nested inmod foo
inmod bar
, I movefoo
to a new file,tests
is a new file in foo: For example library/std/src/sys/sgx/abi/tls.rsmod test
(notmod tests
) also is moved.mod benches
are moved.mod tests
is placed before anyuse
statements: The topic is discussed in https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Code.20Style.20processignore-tidy-filelength
anymore.