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

Don't try to add nested predicate to Rustdoc auto-trait ParamEnv #80254

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

Aaron1011
Copy link
Member

Fixes #80233

We already have logic in evaluate_predicates that tries to add
unimplemented predicates to our ParamEnv. Trying to add a predicate
that already holds can lead to errors later on, since projection
will prefer trait candidates from the ParamEnv to predicates from an
impl.

Fixes rust-lang#80233

We already have logic in `evaluate_predicates` that tries to add
unimplemented predicates to our `ParamEnv`. Trying to add a predicate
that already holds can lead to errors later on, since projection
will prefer trait candidates from the `ParamEnv` to predicates from an
impl.
@rust-highfive
Copy link
Collaborator

r? @estebank

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 21, 2020
@Aaron1011
Copy link
Member Author

@estebank Are there any changes that you'd like me to make?

@estebank
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Jan 14, 2021

📌 Commit f2d7c05 has been approved by estebank

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 14, 2021
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jan 15, 2021
…=estebank

Don't try to add nested predicate to Rustdoc auto-trait `ParamEnv`

Fixes rust-lang#80233

We already have logic in `evaluate_predicates` that tries to add
unimplemented predicates to our `ParamEnv`. Trying to add a predicate
that already holds can lead to errors later on, since projection
will prefer trait candidates from the `ParamEnv` to predicates from an
impl.
@bors
Copy link
Contributor

bors commented Jan 15, 2021

⌛ Testing commit f2d7c05 with merge 6be73f587b2ad18c09ecdc840d5495b8155d6ced...

@JohnTitor
Copy link
Member

@bors retry rolledup

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 15, 2021
Rollup of 5 pull requests

Successful merges:

 - rust-lang#80254 (Don't try to add nested predicate to Rustdoc auto-trait `ParamEnv`)
 - rust-lang#80834 (Remove unreachable panics from VecDeque::{front/back}[_mut])
 - rust-lang#80944 (Use Option::map_or instead of `.map(..).unwrap_or(..)`)
 - rust-lang#81008 (Don't ICE when computing a layout of a generator tainted by errors)
 - rust-lang#81023 (Remove doctree::Variant)

Failed merges:

 - rust-lang#81033 (Remove useless `clean::Variant` struct)

r? `@ghost`
`@rustbot` modify labels: rollup
@rust-log-analyzer
Copy link
Collaborator

A job failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

@bors
Copy link
Contributor

bors commented Jan 15, 2021

⌛ Testing commit f2d7c05 with merge 4e208f6...

@bors bors merged commit 0dedc6c into rust-lang:master Jan 15, 2021
@rustbot rustbot added this to the 1.51.0 milestone Jan 15, 2021
@GuillaumeGomez GuillaumeGomez added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rustdoc ICE "Unable to fulfill trait"
8 participants