-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Unused type parameter error regression with nightly-2016-08-28 #36075
Comments
Note that this is a regression from stable. This code may be wrong, but the end users of an application that depends on a library that depends on a library that depends on a old version of the We’ve publish a new version of This is somewhat unusual code, so I don’t know if anything other than cssparser is affected. It may be worth doing a Crater run. It can we do end up keeping this language change/breakage, would a deprecation warning help? Or would Cargo suppress it when building something that (recursively) depends on on an old cssparser version? |
Looks like it was accidentally caused by #36002. Sorry for the earlier dismissal, I didn't realize where P: AtRuleParser + DeclarationParser<Declaration = <P as AtRuleParser>::AtRule>
// perhaps even just:
where P: AtRuleParser + DeclarationParser<Declaration = P::AtRule> So it is possible it was correctly considered constrained before, but I'd want confirmation from @nikomatsakis or @arielb1 before changing anything. |
In cssparser 0.6.0 I’ve removed -impl<'i, 't, 'a, I, P> Iterator for DeclarationListParser<'i, 't, 'a, I, P>
+impl<'i, 't, 'a, I, P> Iterator for DeclarationListParser<'i, 't, 'a, P>
where P: DeclarationParser<Declaration = I> + AtRuleParser<AtRule = I> {
type Item = Result<I, Range<SourcePosition>>; (because using Is this likely to be rejected later? |
Will investigate. |
The following code now fails to typecheck in latest nightly:
source
The text was updated successfully, but these errors were encountered: