@@ -46,7 +46,7 @@ impl Attrs {
4646 }
4747
4848 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) )
5050 }
5151}
5252
@@ -507,7 +507,7 @@ impl AttrsWithOwner {
507507 // FIXME: We should be never getting `None` here.
508508 match src. value . get ( it. local_id ( ) ) {
509509 Some ( val) => RawAttrs :: from_attrs_owner (
510- db. upcast ( ) ,
510+ db,
511511 src. with_value ( val) ,
512512 db. span_map ( src. file_id ) . as_ref ( ) ,
513513 ) ,
@@ -519,7 +519,7 @@ impl AttrsWithOwner {
519519 // FIXME: We should be never getting `None` here.
520520 match src. value . get ( it. local_id ( ) ) {
521521 Some ( val) => RawAttrs :: from_attrs_owner (
522- db. upcast ( ) ,
522+ db,
523523 src. with_value ( val) ,
524524 db. span_map ( src. file_id ) . as_ref ( ) ,
525525 ) ,
@@ -531,7 +531,7 @@ impl AttrsWithOwner {
531531 // FIXME: We should be never getting `None` here.
532532 match src. value . get ( it. local_id ) {
533533 Some ( val) => RawAttrs :: from_attrs_owner (
534- db. upcast ( ) ,
534+ db,
535535 src. with_value ( val) ,
536536 db. span_map ( src. file_id ) . as_ref ( ) ,
537537 ) ,
@@ -544,7 +544,7 @@ impl AttrsWithOwner {
544544 AttrDefId :: UseId ( it) => attrs_from_item_tree_loc ( db, it) ,
545545 } ;
546546
547- let attrs = raw_attrs. filter ( db. upcast ( ) , def. krate ( db) ) ;
547+ let attrs = raw_attrs. filter ( db, def. krate ( db) ) ;
548548 Attrs ( attrs)
549549 }
550550
0 commit comments