diff options
| author | David Wood <david@davidtw.co> | 2018-12-09 03:07:31 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2018-12-30 14:30:59 +0100 |
| commit | 95c18382cb01480b99b55163c19f35907de80eb4 (patch) | |
| tree | b69ab6e7896afbe6a401be810530e3e4bc2c5965 /src/rustllvm/RustWrapper.cpp | |
| parent | 6092d92d70c81861ed46f2496e62dc74183857fd (diff) | |
| download | rust-95c18382cb01480b99b55163c19f35907de80eb4.tar.gz rust-95c18382cb01480b99b55163c19f35907de80eb4.zip | |
Fix unresolved inference variable ICE.
This commit moves well-formedness check for the `UserTypeAnnotation::Ty(..)` case from always running to only when the code is reachable. This solves the ICE that resulted from `src/test/ui/issue-54943-1.rs` (a minimal repro of `dropck-eyepatch` run-pass tests that failed). The main well-formedness check that was intended to be run despite unreachable code still is, that being the `UserTypeAnnotation::TypeOf(..)` case. Before this PR, the other case wasn't being checked at all. It is possible to fix this ICE while still always checking well-formedness for the `UserTypeAnnotation::Ty(..)` case but that solution will ICE in unreachable code for that case, the diff for that change [can be found here](0). [0]: https://gist.github.com/davidtwco/f9751ffd9c0508f7251c0f17adc3af53
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
