mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 18:26:19 +00:00
Make Semantics<'db, DB> support Semantics<'db, dyn HirDatabase>, by use of DB: ?Sized
This commit is contained in:
parent
7fa66d67a7
commit
a01fe887c6
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.
|
||||
pub struct Semantics<'db, DB> {
|
||||
pub struct Semantics<'db, DB: ?Sized> {
|
||||
pub db: &'db DB,
|
||||
imp: SemanticsImpl<'db>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue