@@ -46,7 +46,7 @@ impl Attrs {
46
46
}
47
47
48
48
pub ( crate ) fn filter ( db : & dyn DefDatabase , krate : Crate , raw_attrs : RawAttrs ) -> Attrs {
49
- Attrs ( raw_attrs. filter ( db. upcast ( ) , krate) )
49
+ Attrs ( raw_attrs. filter ( db, krate) )
50
50
}
51
51
}
52
52
@@ -507,7 +507,7 @@ impl AttrsWithOwner {
507
507
// FIXME: We should be never getting `None` here.
508
508
match src. value . get ( it. local_id ( ) ) {
509
509
Some ( val) => RawAttrs :: from_attrs_owner (
510
- db. upcast ( ) ,
510
+ db,
511
511
src. with_value ( val) ,
512
512
db. span_map ( src. file_id ) . as_ref ( ) ,
513
513
) ,
@@ -519,7 +519,7 @@ impl AttrsWithOwner {
519
519
// FIXME: We should be never getting `None` here.
520
520
match src. value . get ( it. local_id ( ) ) {
521
521
Some ( val) => RawAttrs :: from_attrs_owner (
522
- db. upcast ( ) ,
522
+ db,
523
523
src. with_value ( val) ,
524
524
db. span_map ( src. file_id ) . as_ref ( ) ,
525
525
) ,
@@ -531,7 +531,7 @@ impl AttrsWithOwner {
531
531
// FIXME: We should be never getting `None` here.
532
532
match src. value . get ( it. local_id ) {
533
533
Some ( val) => RawAttrs :: from_attrs_owner (
534
- db. upcast ( ) ,
534
+ db,
535
535
src. with_value ( val) ,
536
536
db. span_map ( src. file_id ) . as_ref ( ) ,
537
537
) ,
@@ -544,7 +544,7 @@ impl AttrsWithOwner {
544
544
AttrDefId :: UseId ( it) => attrs_from_item_tree_loc ( db, it) ,
545
545
} ;
546
546
547
- let attrs = raw_attrs. filter ( db. upcast ( ) , def. krate ( db) ) ;
547
+ let attrs = raw_attrs. filter ( db, def. krate ( db) ) ;
548
548
Attrs ( attrs)
549
549
}
550
550
0 commit comments