update for upstream changes to TyFnDef#226
Conversation
|
The |
|
I think maybe we need to update the |
| f.abi() == Abi::RustIntrinsic || | ||
| f.abi() == Abi::PlatformIntrinsic => | ||
| ty::TyFnDef(..) if { | ||
| let f = item_type.fn_sig(tcx); |
There was a problem hiding this comment.
Do not call this. tcx.fn_sig(def_id) is less work.
There was a problem hiding this comment.
This code is directly copied from librustc_trans. Should it also be changed there?
There was a problem hiding this comment.
Ah I see, just leave it alone then. Minor inefficiency but the DefId might not match.
To me this looks more like some form of normalization used to be performed, but is no longer performed... I never saw types like |
|
Ah yeah you need to normalize yourself when working on a signature, like you would a field. |
|
OK. Fixed by adding a call to |
Fixes breakage from rust-lang/rust#42417.