mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Remove salsa compile_fail tests
This commit is contained in:
parent
8929853df7
commit
1ef7a9971d
1 changed files with 2 additions and 23 deletions
|
@ -93,29 +93,8 @@ mod query_group;
|
|||
/// ## 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue