-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not call this. tcx.fn_sig(def_id)
is less work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code is directly copied from librustc_trans. Should it also be changed there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.