Ignore non .rs files for tidy libcoretest by varkor · Pull Request #50661 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation5 Commits2 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

varkor

Previously, any file would be read, which is both unnecessary, and causes issues if irrelevant non-Unicode files were read (e.g. .DS_STORE).

@varkor

Previously, any file would be read, which is both unnecessary, and causes issues if irrelevant non-Unicode files were read (e.g. .DS_STORE).

alexcrichton

"{} contains #[test]; libcore tests must be placed inside `src/libcore/tests/`",
subpath.display()
);
if subpath.ends_with(".rs") {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you verified that adding #[test] inside libcore still triggers this warning? Path::ends_with I don't think will work with ".rs" here

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, should have tested this properly. I've fixed it, and also improved the error message in the case of failure.

@varkor

@alexcrichton

@bors

📌 Commit 16c088d has been approved by alexcrichton

@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

May 11, 2018

kennytm added a commit to kennytm/rust that referenced this pull request

May 12, 2018

@kennytm

…=alexcrichton

Ignore non .rs files for tidy libcoretest

Previously, any file would be read, which is both unnecessary, and causes issues if irrelevant non-Unicode files were read (e.g. .DS_STORE).

@Mark-Simulacrum

bors added a commit that referenced this pull request

May 12, 2018

@bors

Rollup of 13 pull requests

Successful merges:

Failed merges:

kennytm added a commit to kennytm/rust that referenced this pull request

May 13, 2018

@kennytm

…=alexcrichton

Ignore non .rs files for tidy libcoretest

Previously, any file would be read, which is both unnecessary, and causes issues if irrelevant non-Unicode files were read (e.g. .DS_STORE).

bors added a commit that referenced this pull request

May 13, 2018

@bors

Rollup of 8 pull requests

Successful merges:

Failed merges:

@varkor varkor deleted the libcoretest-ignore-non-rs branch

May 13, 2018 14:53

Labels

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.