Repository navigation
Inference regression in nightly affecting Pin::set and futures #56237
Copy link
Copy link
Closed
Labels
P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Description
Activity
Minimized example without
Pinand external dependencies:use std::ops::{Deref, DerefMut}; fn foo<P>(_value: <P as Deref>::Target) where P: DerefMut, <P as Deref>::Target: Sized, {} fn main() { foo::<&mut u32>(2); }
Reacted by srrrse, Nemo157, Hendrik Sollich, Taylor Cramer and Lukas KalbertodtEnabling the
unsized_localsfeature fixes this, so this is being caused by the gate here.Perhaps do I need some normalization before doing deferred
Sizedness checking?- addedregression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
on Dec 3, 2018 triage. This is now a stable-to-beta regression. P-high.
- addedregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.and removedregression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
on Dec 6, 2018 assigning to @nikomatsakis to either r+ PR #56282, come up with a new fix, or delegate those options to someone else.
- added a commit that references this issue
on Dec 6, 2018
Metadata
Metadata
Assignees
Labels
P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
futures-util-previewdoes not build on the current nightly because the compiler is unable to infer that a type isSized. This is a regression in the latest nightly.The line that errors is here.
Error message:
Relevant commits: edaac35...6acbb5b
cc rust-lang/futures-rs#1350