Skip to content

Commit a01fe88

Browse files
committed
Make Semantics<'db, DB> support Semantics<'db, dyn HirDatabase>, by use of DB: ?Sized
1 parent 7fa66d6 commit a01fe88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir/src/semantics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl TypeInfo {
147147
}
148148

149149
/// Primary API to get semantic information, like types, from syntax trees.
150-
pub struct Semantics<'db, DB> {
150+
pub struct Semantics<'db, DB: ?Sized> {
151151
pub db: &'db DB,
152152
imp: SemanticsImpl<'db>,
153153
}

0 commit comments

Comments
 (0)