Merge pull request #19850 from regexident/dyn-semantics

Add support for type-erased `Semantics<'db, dyn HirDatabase>`, by use of `DB: ?Sized`
This commit is contained in:
Chayim Refael Friedman 2025-05-27 13:50:27 +00:00 committed by GitHub
commit 7230ded9c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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>,
}