rust/crates/rust-analyzer
bors ae89ca3fbb Auto merge of #15161 - lowr:patch/fixture-metadata-library, r=Veykril
internal: add `library` fixture meta

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

[this]: 4b06d3c595/crates/base-db/src/fixture.rs (L450)
2023-06-28 15:23:32 +00:00
..
src Auto merge of #15161 - lowr:patch/fixture-metadata-library, r=Veykril 2023-06-28 15:23:32 +00:00
tests/slow-tests Version 2 2023-06-22 20:29:11 +02:00
build.rs Fix typo in build.rs 2022-06-26 10:09:45 +00:00
Cargo.toml Downgrade some deps to get rif of windows-sys duplication 2023-06-22 11:44:10 +02:00