Skip to content

Conversation

arielb1
Copy link
Contributor

@arielb1 arielb1 commented Apr 13, 2017

Instead of having write_adjustment overwrite the previous adjustment, have apply_adjustment compose a new adjustment on top of the previous one. This is important because NeverToAny adjustments can be present on expressions during coercion.

Fixes #41213.

r? @nikomatsakis

@nikomatsakis
Copy link
Contributor

@bors r+

Nice patch.

@bors
Copy link
Collaborator

bors commented Apr 13, 2017

📌 Commit 03b0d99 has been approved by nikomatsakis

@bors
Copy link
Collaborator

bors commented Apr 14, 2017

⌛ Testing commit 03b0d99 with merge 8019dc0...

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 14, 2017
…ikomatsakis

rustc_typeck: consolidate adjustment composition

Instead of having `write_adjustment` overwrite the previous adjustment, have `apply_adjustment` compose a new adjustment on top of the previous one. This is important because `NeverToAny` adjustments can be present on expressions during coercion.

Fixes rust-lang#41213.

r? @nikomatsakis
@frewsxcv
Copy link
Contributor

@bors retry prioritizing rollup

bors added a commit that referenced this pull request Apr 14, 2017
Rollup of 4 pull requests

- Successful merges: #41279, #41281, #41287, #41292
- Failed merges:
@Mark-Simulacrum Mark-Simulacrum added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Apr 14, 2017
@bors bors merged commit 03b0d99 into rust-lang:master Apr 14, 2017
arielb1 pushed a commit to arielb1/rust that referenced this pull request Apr 27, 2017
typeck: resolve type vars before calling `try_index_step`

`try_index_step` does not resolve type variables by itself and would
fail otherwise. Also harden the failure path in `confirm` to cause less
confusing errors.

r? @eddyb

Fixes rust-lang#41498.

beta-nominating because regression (caused by rust-lang#41279).
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 27, 2017
typeck: resolve type vars before calling `try_index_step`

`try_index_step` does not resolve type variables by itself and would
fail otherwise. Also harden the failure path in `confirm` to cause less
confusing errors.

r? @eddyb

Fixes rust-lang#41498.

beta-nominating because regression (caused by rust-lang#41279).
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 27, 2017
typeck: resolve type vars before calling `try_index_step`

`try_index_step` does not resolve type variables by itself and would
fail otherwise. Also harden the failure path in `confirm` to cause less
confusing errors.

r? @eddyb

Fixes rust-lang#41498.

beta-nominating because regression (caused by rust-lang#41279).
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants