Skip to content
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

internal: add library fixture meta #15161

Merged
merged 1 commit into from Jun 28, 2023

Conversation

lowr
Copy link
Contributor

@lowr lowr commented Jun 28, 2023

Currently, there is no way to specify CrateOrigin of a file fixture (this might be a bug?). This PR adds library meta to explicitly specify the fixture to be CrateOrigin::Library and also makes sure crates that belong to a library source root are set CrateOrigin::Library.

(library isn't really the best name. It essentially means that the crate is outside workspace but non_workspace_member feels a bit too long. Suggestions for the better name would be appreciated)

Additionally:

  • documents the fixture meta syntax as thoroughly as possible
  • refactors relevant code

Additionally documents the syntax for fixture meta.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 28, 2023
@Veykril
Copy link
Member

Veykril commented Jun 28, 2023

we use the term library internally in other places for this as well so thats fine (sourceroot makes a distinction between local and library I think)

@lowr
Copy link
Contributor Author

lowr commented Jun 28, 2023

I think I'm feeling it's confusing because there are two library flags, one for source root and another for CrateOrigin (I didn't even know the difference between them until today 😓 ). But hopefully the documentation this PR adds mitigates the confusion as well.

@Veykril
Copy link
Member

Veykril commented Jun 28, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 28, 2023

📌 Commit d51536c has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jun 28, 2023

⌛ Testing commit d51536c with merge ae89ca3...

@bors
Copy link
Collaborator

bors commented Jun 28, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing ae89ca3 to master...

@bors bors merged commit ae89ca3 into rust-lang:master Jun 28, 2023
10 checks passed
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants