This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-23
lines changed
crates/salsa/salsa-macros/src Expand file tree Collapse file tree 1 file changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -93,29 +93,8 @@ mod query_group;
93
93
/// ## Attribute combinations
94
94
///
95
95
/// 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.
119
98
#[ proc_macro_attribute]
120
99
pub fn query_group ( args : TokenStream , input : TokenStream ) -> TokenStream {
121
100
query_group:: query_group ( args, input)
You can’t perform that action at this time.
0 commit comments