Skip to content

src/test/compile-fail should have more files in subdirectories #46841

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

Closed
pnkfelix opened this issue Dec 19, 2017 · 5 comments
Closed

src/test/compile-fail should have more files in subdirectories #46841

pnkfelix opened this issue Dec 19, 2017 · 5 comments
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@pnkfelix
Copy link
Member

Github refuses to list more than 1,000 files in a given directory listing.

As of this writing, its web interface reports that 1,260 entries are omitted from the printout for https://github.com/rust-lang/rust/tree/master/src/test/compile-fail

This has a simple fix: More subdirectories.

In particular, many of the tests even have a prefix that strongly implies a potential subdirectory to move that subset into; e.g. the associated-{const,item,type} tests could all go into associated-item/. LIkewise, the E0nnn test could all go into diagnostics/...

(This is a super easy change to make to the test suite, though I know that some people want to separately migrate more/all of the tests into the ui/ subdirectory. I no longer object to the latter migration, but we'll still need to resolve this problem even when we do that migration.)

@pnkfelix pnkfelix added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. labels Dec 19, 2017
technicalguy added a commit to technicalguy/rust that referenced this issue Dec 21, 2017
Addresses issue rust-lang#46841.

Created the following subdirectories:
associated-item
closures
coherence
const
diagnostics
issues
lint
macro
regions
traits
typing
variance

Additionally rename some tests:
renamed:    unboxed-closer-non-implicit-copyable.rs -> closures/unboxed-closure-non-implicit-copyable.rs
renamed:    issue32829.rs -> issues/issue-32829-1.rs
renamed:    isssue-38821.rs -> issues/issue-38821.rs
Pulkit07 added a commit to Pulkit07/rust that referenced this issue Jan 19, 2018
…#46841

This patch moves the E0nnn files from src/test/compile-fail to a new
subdirectory named diagnostics/. This is a part of issue rust-lang#46841
@varkor
Copy link
Member

varkor commented Jan 19, 2018

Update: It was decided that a proper set of guidelines were needed for directories (and test names) first, before moving anything around.

@XAMPPRocky XAMPPRocky added the C-cleanup Category: PRs that clean code up or issues documenting cleanup. label Mar 26, 2018
@TheSirC
Copy link

TheSirC commented Jun 21, 2018

Should this issue be closed ? Is there any work to be done ?

@varkor
Copy link
Member

varkor commented Jun 21, 2018

@TheSirC: as far as I'm aware, #46841 (comment) is still relevant; it's just that no-one's got around to it yet.

cc @technicalguy

@technicalguy
Copy link
Contributor

I think that is still the case. I certainly haven't got around to it (or anything). I think it would be good for someone with a bit more experience than me to suggest some guidelines and then we can work from there...

@TheSirC
Copy link

TheSirC commented Jun 21, 2018

Thank you guys for your answer! I will wait for guidelines so.

bors added a commit that referenced this issue Aug 10, 2018
bors added a commit that referenced this issue Aug 13, 2018
bors added a commit that referenced this issue Aug 14, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants