mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-03 05:13:35 +00:00
Auto-attach database in Analysis calls
This commit is contained in:
parent
becf04b67a
commit
aed0fec1a9
12 changed files with 137 additions and 101 deletions
|
|
@ -46,7 +46,7 @@ impl<'db> GenericArg<'db> {
|
|||
pub fn expect_ty(self) -> Ty<'db> {
|
||||
match self.kind() {
|
||||
GenericArgKind::Type(ty) => ty,
|
||||
_ => panic!("Expected ty, got {:?}", self),
|
||||
_ => panic!("Expected ty, got {self:?}"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue