@@ -8,36 +8,43 @@ use rustc_span::DUMMY_SP;
88use rustc_trait_selection:: traits;
99
1010fn is_copy_raw < ' tcx > ( tcx : TyCtxt < ' tcx > , query : ty:: PseudoCanonicalInput < ' tcx , Ty < ' tcx > > ) -> bool {
11- is_item_raw ( tcx, query, LangItem :: Copy )
11+ is_trait_raw ( tcx, query, LangItem :: Copy )
1212}
1313
1414fn is_use_cloned_raw < ' tcx > (
1515 tcx : TyCtxt < ' tcx > ,
1616 query : ty:: PseudoCanonicalInput < ' tcx , Ty < ' tcx > > ,
1717) -> bool {
18- is_item_raw ( tcx, query, LangItem :: UseCloned )
18+ is_trait_raw ( tcx, query, LangItem :: UseCloned )
1919}
2020
2121fn is_sized_raw < ' tcx > ( tcx : TyCtxt < ' tcx > , query : ty:: PseudoCanonicalInput < ' tcx , Ty < ' tcx > > ) -> bool {
22- is_item_raw ( tcx, query, LangItem :: Sized )
22+ is_trait_raw ( tcx, query, LangItem :: Sized )
2323}
2424
2525fn is_freeze_raw < ' tcx > ( tcx : TyCtxt < ' tcx > , query : ty:: PseudoCanonicalInput < ' tcx , Ty < ' tcx > > ) -> bool {
26- is_item_raw ( tcx, query, LangItem :: Freeze )
26+ is_trait_raw ( tcx, query, LangItem :: Freeze )
27+ }
28+
29+ fn is_unsafe_unpin_raw < ' tcx > (
30+ tcx : TyCtxt < ' tcx > ,
31+ query : ty:: PseudoCanonicalInput < ' tcx , Ty < ' tcx > > ,
32+ ) -> bool {
33+ is_trait_raw ( tcx, query, LangItem :: UnsafeUnpin )
2734}
2835
2936fn is_unpin_raw < ' tcx > ( tcx : TyCtxt < ' tcx > , query : ty:: PseudoCanonicalInput < ' tcx , Ty < ' tcx > > ) -> bool {
30- is_item_raw ( tcx, query, LangItem :: Unpin )
37+ is_trait_raw ( tcx, query, LangItem :: Unpin )
3138}
3239
3340fn is_async_drop_raw < ' tcx > (
3441 tcx : TyCtxt < ' tcx > ,
3542 query : ty:: PseudoCanonicalInput < ' tcx , Ty < ' tcx > > ,
3643) -> bool {
37- is_item_raw ( tcx, query, LangItem :: AsyncDrop )
44+ is_trait_raw ( tcx, query, LangItem :: AsyncDrop )
3845}
3946
40- fn is_item_raw < ' tcx > (
47+ fn is_trait_raw < ' tcx > (
4148 tcx : TyCtxt < ' tcx > ,
4249 query : ty:: PseudoCanonicalInput < ' tcx , Ty < ' tcx > > ,
4350 item : LangItem ,
@@ -53,6 +60,7 @@ pub(crate) fn provide(providers: &mut Providers) {
5360 is_use_cloned_raw,
5461 is_sized_raw,
5562 is_freeze_raw,
63+ is_unsafe_unpin_raw,
5664 is_unpin_raw,
5765 is_async_drop_raw,
5866 ..* providers
0 commit comments