Skip to content

Conversation

@reddevilmidzy
Copy link
Contributor

@reddevilmidzy reddevilmidzy commented Dec 8, 2025

Note

Intermediate commits are intended to help review, but will be squashed add comment commit prior to merge.

part of #133895

tests/ui/compile-flags split it into tests/ui/compile-flags/invalid/ and tests/ui/compile-flags/run-pass/

r? Kivooeo

@rustbot
Copy link
Collaborator

rustbot commented Dec 8, 2025

This PR modifies tests/ui/issues/. If this PR is adding new tests to tests/ui/issues/,
please refrain from doing so, and instead add it to more descriptive subdirectories.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 8, 2025
@reddevilmidzy reddevilmidzy changed the title Tidying up tests/ui/issues tests [4/N] Tidying up tests/ui/issues 33 tests [4/N] Dec 8, 2025
Copy link
Contributor Author

@reddevilmidzy reddevilmidzy left a comment

Choose a reason for hiding this comment

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

thanks for the review and I wanted to ask: how many tests per PR would be most convenient for you to review?

View changes since this review

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if there a directory for tests that test a CLI options passed to compiler like in this case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was an invalid-compile-flags directory, but no directory like run-pass compile flags

Copy link
Member

Choose a reason for hiding this comment

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

let's do tests/ui/compile-flags and split it into ui/compile-flags/invalid/ and ui/compile-flags/run-pass/

Copy link
Member

Choose a reason for hiding this comment

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

It seems like type check something

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved to tests/ui/typeck/osstring-str-equality.rs

Copy link
Member

@Kivooeo Kivooeo Dec 8, 2025

Choose a reason for hiding this comment

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

anything else resolve related

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep moved to tests/ui/resolve/module-used-as-struct-constructor.rs

Copy link
Member

@Kivooeo Kivooeo Dec 8, 2025

Choose a reason for hiding this comment

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

I feel like it more pattern directory, or even shadowing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I moved it to the pattern directory. and the test below moved it to the shadowing directory

Copy link
Member

Choose a reason for hiding this comment

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

the same as above but it looks like more shadowing

Copy link
Member

Choose a reason for hiding this comment

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

this test wasn't moved?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I missed it sorry

@Kivooeo
Copy link
Member

Kivooeo commented Dec 8, 2025

Everything else is fine

For the tests amount I would say that 15+- is very comfortable to review

If you want to do more that's fine as well, just might take more time but I have nothing against it

@reddevilmidzy
Copy link
Contributor Author

reddevilmidzy commented Dec 10, 2025

Can you please replace issue numbers with links, so it will be easier anytime in future to follow them by just copy paste

I saw the comment left on another PR. I will change # to link!

regex is awesome..

@Kivooeo
Copy link
Member

Kivooeo commented Dec 11, 2025

I'll take a last look before merge tomorrow, sorry for delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants