Skip to content
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

regression: type annotations required cannot resolve std::borrow::Cow<'_, str>: std::borrow::Borrow<_> #61476

Closed
Mark-Simulacrum opened this issue Jun 3, 2019 · 9 comments
Labels
regression-from-stable-to-beta Performance or correctness regression from stable to beta. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@Mark-Simulacrum
Copy link
Member

Mark-Simulacrum commented Jun 3, 2019

root: zmtp - 2 detected crates which regressed due to this; cc @jjpe

@Mark-Simulacrum Mark-Simulacrum added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. regression-from-stable-to-beta Performance or correctness regression from stable to beta. labels Jun 3, 2019
@eddyb eddyb added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jun 6, 2019
@eddyb
Copy link
Member

eddyb commented Jun 6, 2019

I can't find a library change that would cause this (and rustdoc confirms that Borrow has the same set of impls on stable and beta), marking as T-compiler.

@pnkfelix
Copy link
Member

This regression was injected by commit 1962ade aka PR #60877, which rolled up the following PR's:

@pnkfelix
Copy link
Member

(could this regression have been caused by PR #59825 ?)

@pnkfelix
Copy link
Member

pnkfelix commented Jun 20, 2019

Apparently so; this appears to be a duplicate of #60958?

Issue #60958 seems has already been discussed amongst the libs team with the conclusion that this is acceptable fallout from PR #59825?

@pnkfelix
Copy link
Member

pnkfelix commented Jun 20, 2019

I would file a followup issue against the zmtp crate, but it is hosted on bitbucket.org, and apparently my account credentials there no longer work... its link on crates.io to bitbucket.org is actually dead.

@pnkfelix
Copy link
Member

Closing as duplicate of #60958.

@jjpe
Copy link

jjpe commented Jun 20, 2019

So this will require downstream libs (among which zmtp) to fix code that used to work on stable but no longer will once this rustc beta stabilizes, do I understand that correctly?

@pnkfelix
Copy link
Member

So this will require downstream libs (among which zmtp) to fix code that used to work on stable but no longer will once this rustc beta stabilizes, do I understand that correctly?

@jjpe that interpretation is consistent with my understanding. See further discussion on #60958, for example this comment

@pnkfelix
Copy link
Member

pnkfelix commented Jun 21, 2019

In particular, changes that cause crates to need additional type annotations are allowed under the stability guarantees as described in this blog post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-from-stable-to-beta Performance or correctness regression from stable to beta. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants