-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Fast path nitpicks #143307
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
base: master
Are you sure you want to change the base?
Fast path nitpicks #143307
Conversation
r? @SparrowLii rustbot has assigned @SparrowLii. Use |
@@ -34,13 +34,6 @@ pub(crate) fn codegen_select_candidate<'tcx>( | |||
let (infcx, param_env) = tcx.infer_ctxt().ignoring_regions().build_with_typing_env(typing_env); | |||
let mut selcx = SelectionContext::new(&infcx); | |||
|
|||
if sizedness_fast_path(tcx, trait_ref.upcast(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.
This function shouldn't ever be reached -- we never do Instance::resolve
on Sized
.
@bors2 try @rust-timer queue r? lcnr perhaps |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
Fast path nitpicks Miscellaneous commits that I didn't really want to fold into anything else. Fixes one theoretical bug with the fast path not considering polarity for `T: !Sized` bounds.
Queued 227ec3b with parent 71e4c00, future comparison URL. |
Miscellaneous commits that I didn't really want to fold into anything else.
Fixes one theoretical bug with the fast path not considering polarity for
T: !Sized
bounds.