rust-analyzer/crates
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
..
base-db Add library fixture meta 2023-06-28 22:34:14 +09:00
cfg Bump serde 2 things 2023-06-22 11:44:10 +02:00
flycheck Bump more deps 2023-06-22 11:44:10 +02:00
hir Refactor 2023-06-27 16:01:07 +09:00
hir-def Refactor 2023-06-27 16:01:07 +09:00
hir-expand Bump more deps 2023-06-22 11:44:10 +02:00
hir-ty Auto merge of #15125 - lowr:patch/rustc_coinductive, r=Veykril 2023-06-28 10:13:31 +00:00
ide Auto merge of #15161 - lowr:patch/fixture-metadata-library, r=Veykril 2023-06-28 15:23:32 +00:00
ide-assists Auto merge of #14948 - alibektas:14386, r=Veykril 2023-06-22 10:44:01 +00:00
ide-completion Less eager parsing for module sources 2023-06-17 10:58:52 +02:00
ide-db Upgrade to indexmap v2 2023-06-24 17:35:20 -07:00
ide-diagnostics Skip mutable diagnostics on synthetic bindings 2023-06-21 19:38:19 +02:00
ide-ssr internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
intern Bump more deps 2023-06-22 11:44:10 +02:00
limit Move Expander and LowerCtx into separate modules 2023-04-17 20:44:06 +02:00
mbe Implement ${count()} metavariable expression 2023-05-28 19:54:36 +09:00
parser Use ConstArg instead of Expr for AstId of InTypeConstId 2023-06-11 00:39:28 +03:30
paths internal: use consistent style for error handling 2023-06-19 13:01:47 +01:00
proc-macro-api Bump more deps 2023-06-22 11:44:10 +02:00
proc-macro-srv Bump more deps 2023-06-22 11:44:10 +02:00
proc-macro-srv-cli Remove proc-macro server command from the rust-analyzer binary 2023-04-26 08:19:28 +02:00
proc-macro-test ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
profile Downgrade some deps to get rif of windows-sys duplication 2023-06-22 11:44:10 +02:00
project-model Change in-tree libs to workspace dependencies 2023-06-20 13:53:39 +10:00
rust-analyzer Auto merge of #15161 - lowr:patch/fixture-metadata-library, r=Veykril 2023-06-28 15:23:32 +00:00
sourcegen Use retain_mut in CommentBlock::extract 2023-03-31 17:41:40 -04:00
stdx Bump more deps 2023-06-22 11:44:10 +02:00
syntax Upgrade to indexmap v2 2023-06-24 17:35:20 -07:00
test-utils Auto merge of #15161 - lowr:patch/fixture-metadata-library, r=Veykril 2023-06-28 15:23:32 +00:00
text-edit Make text-size a workspace dep 2023-05-06 00:49:23 -07:00
toolchain ⬆️ rust-analyzer 2023-03-13 10:42:24 +02:00
tt Emit function bodies in expanding builtin derives 2023-05-03 14:14:47 +03:30
vfs Upgrade to indexmap v2 2023-06-24 17:35:20 -07:00
vfs-notify Downgrade some deps to get rif of windows-sys duplication 2023-06-22 11:44:10 +02:00