@@ -32,7 +32,7 @@ impl Diagnostic for NoSuchField {
3232impl AstDiagnostic for NoSuchField {
3333 type AST = ast:: RecordField ;
3434
35- fn ast ( & self , db : & impl AstDatabase ) -> Self :: AST {
35+ fn ast ( & self , db : & dyn AstDatabase ) -> Self :: AST {
3636 let root = db. parse_or_expand ( self . source ( ) . file_id ) . unwrap ( ) ;
3737 let node = self . source ( ) . value . to_node ( & root) ;
3838 ast:: RecordField :: cast ( node) . unwrap ( )
@@ -65,7 +65,7 @@ impl Diagnostic for MissingFields {
6565impl AstDiagnostic for MissingFields {
6666 type AST = ast:: RecordFieldList ;
6767
68- fn ast ( & self , db : & impl AstDatabase ) -> Self :: AST {
68+ fn ast ( & self , db : & dyn AstDatabase ) -> Self :: AST {
6969 let root = db. parse_or_expand ( self . source ( ) . file_id ) . unwrap ( ) ;
7070 let node = self . source ( ) . value . to_node ( & root) ;
7171 ast:: RecordFieldList :: cast ( node) . unwrap ( )
@@ -135,7 +135,7 @@ impl Diagnostic for MissingOkInTailExpr {
135135impl AstDiagnostic for MissingOkInTailExpr {
136136 type AST = ast:: Expr ;
137137
138- fn ast ( & self , db : & impl AstDatabase ) -> Self :: AST {
138+ fn ast ( & self , db : & dyn AstDatabase ) -> Self :: AST {
139139 let root = db. parse_or_expand ( self . file ) . unwrap ( ) ;
140140 let node = self . source ( ) . value . to_node ( & root) ;
141141 ast:: Expr :: cast ( node) . unwrap ( )
@@ -163,7 +163,7 @@ impl Diagnostic for BreakOutsideOfLoop {
163163impl AstDiagnostic for BreakOutsideOfLoop {
164164 type AST = ast:: Expr ;
165165
166- fn ast ( & self , db : & impl AstDatabase ) -> Self :: AST {
166+ fn ast ( & self , db : & dyn AstDatabase ) -> Self :: AST {
167167 let root = db. parse_or_expand ( self . file ) . unwrap ( ) ;
168168 let node = self . source ( ) . value . to_node ( & root) ;
169169 ast:: Expr :: cast ( node) . unwrap ( )
@@ -191,7 +191,7 @@ impl Diagnostic for MissingUnsafe {
191191impl AstDiagnostic for MissingUnsafe {
192192 type AST = ast:: Expr ;
193193
194- fn ast ( & self , db : & impl AstDatabase ) -> Self :: AST {
194+ fn ast ( & self , db : & dyn AstDatabase ) -> Self :: AST {
195195 let root = db. parse_or_expand ( self . source ( ) . file_id ) . unwrap ( ) ;
196196 let node = self . source ( ) . value . to_node ( & root) ;
197197 ast:: Expr :: cast ( node) . unwrap ( )
0 commit comments