Skip to content

Commit 7230ded

Browse files
Merge pull request #19850 from regexident/dyn-semantics
Add support for type-erased `Semantics<'db, dyn HirDatabase>`, by use of `DB: ?Sized`
2 parents 7fa66d6 + a01fe88 commit 7230ded

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)