From 1ef7a9971d5213bdf57d11d7ec82ab47a7ec5bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 26 Feb 2024 15:26:55 +0200 Subject: [PATCH] Remove salsa compile_fail tests --- crates/salsa/salsa-macros/src/lib.rs | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/crates/salsa/salsa-macros/src/lib.rs b/crates/salsa/salsa-macros/src/lib.rs index 8af48b1e3f8..d3e17c5ebf1 100644 --- a/crates/salsa/salsa-macros/src/lib.rs +++ b/crates/salsa/salsa-macros/src/lib.rs @@ -93,29 +93,8 @@ /// ## Attribute combinations /// /// Some attributes are mutually exclusive. For example, it is an error to add -/// multiple storage specifiers: -/// -/// ```compile_fail -/// # use salsa_macros as salsa; -/// #[salsa::query_group] -/// trait CodegenDatabase { -/// #[salsa::input] -/// #[salsa::memoized] -/// fn my_query(&self, input: u32) -> u64; -/// } -/// ``` -/// -/// It is also an error to annotate a function to `invoke` on an `input` query: -/// -/// ```compile_fail -/// # use salsa_macros as salsa; -/// #[salsa::query_group] -/// trait CodegenDatabase { -/// #[salsa::input] -/// #[salsa::invoke(typeck::my_query)] -/// fn my_query(&self, input: u32) -> u64; -/// } -/// ``` +/// multiple storage specifiers or to annotate a function to `invoke` on an +/// `input` query. #[proc_macro_attribute] pub fn query_group(args: TokenStream, input: TokenStream) -> TokenStream { query_group::query_group(args, input)