Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f7f63cc

Browse files
committed
Auto merge of rust-lang#16680 - lnicola:salsa-doc-test, r=Veykril
internal: Remove salsa compile_fail tests I can't figure out how to reproduce them, but hopefully fixes these: ![image](https://github.com/rust-lang/rust-analyzer/assets/308347/462dbfc3-5414-42fd-b81d-a3d699fa9a8d)
2 parents 40bf8bf + 1ef7a99 commit f7f63cc

File tree

1 file changed

+2
-23
lines changed
  • crates/salsa/salsa-macros/src

1 file changed

+2
-23
lines changed

crates/salsa/salsa-macros/src/lib.rs

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -93,29 +93,8 @@ mod query_group;
9393
/// ## Attribute combinations
9494
///
9595
/// Some attributes are mutually exclusive. For example, it is an error to add
96-
/// multiple storage specifiers:
97-
///
98-
/// ```compile_fail
99-
/// # use salsa_macros as salsa;
100-
/// #[salsa::query_group]
101-
/// trait CodegenDatabase {
102-
/// #[salsa::input]
103-
/// #[salsa::memoized]
104-
/// fn my_query(&self, input: u32) -> u64;
105-
/// }
106-
/// ```
107-
///
108-
/// It is also an error to annotate a function to `invoke` on an `input` query:
109-
///
110-
/// ```compile_fail
111-
/// # use salsa_macros as salsa;
112-
/// #[salsa::query_group]
113-
/// trait CodegenDatabase {
114-
/// #[salsa::input]
115-
/// #[salsa::invoke(typeck::my_query)]
116-
/// fn my_query(&self, input: u32) -> u64;
117-
/// }
118-
/// ```
96+
/// multiple storage specifiers or to annotate a function to `invoke` on an
97+
/// `input` query.
11998
#[proc_macro_attribute]
12099
pub fn query_group(args: TokenStream, input: TokenStream) -> TokenStream {
121100
query_group::query_group(args, input)

0 commit comments

Comments
 (0)