salsa/examples/compiler/interner.rs
Maxwell Elliot Heiber 145202e376 Remove ': salsa::Database' bound from two examples
Two examples had a superfluous bound
': salsa::Database' that wasn't present
in the `compiler` example.

The `query_group` macro adds this bound
automatically.

This change can lead to a trailing `+` in
the bounds list. I verified this is OK by
running the examples and verifying that the production
is allowed
[per the Rust Reference](https://doc.rust-lang.org/reference/trait-bounds.html)
2021-12-30 11:02:30 +00:00

10 lines
243 B
Rust

use crate::values::*;
#[salsa::query_group(InternerDatabase)]
pub trait Interner {
#[salsa::interned]
fn intern_field(&self, field: FieldData) -> Field;
#[salsa::interned]
fn intern_class(&self, class: ClassData) -> Class;
}