mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-18 03:13:31 +00:00
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:
commit
7230ded9c7
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ impl TypeInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Primary API to get semantic information, like types, from syntax trees.
|
/// 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,
|
pub db: &'db DB,
|
||||||
imp: SemanticsImpl<'db>,
|
imp: SemanticsImpl<'db>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue