Make Semantics<'db, DB> support Semantics<'db, dyn HirDatabase>, by use of DB: ?Sized

This commit is contained in:
Vincent Esche 2025-05-26 13:27:01 +02:00
parent 7fa66d67a7
commit a01fe887c6

View file

@ -147,7 +147,7 @@ impl TypeInfo {
}
/// Primary API to get semantic information, like types, from syntax trees.
pub struct Semantics<'db, DB> {
pub struct Semantics<'db, DB: ?Sized> {
pub db: &'db DB,
imp: SemanticsImpl<'db>,
}