diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-03-06 20:01:12 -0600 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-03-07 07:09:52 -0800 |
| commit | 0e6df533d47baad149f4c0d49c2c60cb79d7a2d7 (patch) | |
| tree | 65c6f70f103ba8703c022e42dd0da5518ca3149f /src/rustllvm/PassWrapper.cpp | |
| parent | 584a28f0c01025831200d9a3939b859a6837d144 (diff) | |
| parent | f5a3efee88b3a2bf2d69b74f2d5a7eb75049f5ef (diff) | |
| download | rust-0e6df533d47baad149f4c0d49c2c60cb79d7a2d7.tar.gz rust-0e6df533d47baad149f4c0d49c2c60cb79d7a2d7.zip | |
Rollup merge of #48778 - sinkuu:rls_crash_tuple_struct, r=nrc
Fix save-analysis generation crash with invalid tuple access
Reproduction:
```rust
fn invalid_tuple_struct_accessing() {
bar.0;
}
```
```
error[E0425]: cannot find value `bar` in this scope
--> test.rs:2:5
|
2 | bar.0;
| ^^^ not found in this scope
error[E0601]: main function not found
error: internal compiler error: librustc_save_analysis/dump_visitor.rs:1678: Expected struct or tuple type, found TyError
--> test.rs:2:5
|
2 | bar.0;
| ^^^^^
thread 'rustc' panicked at 'Box<Any>', librustc_errors/lib.rs:482:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
```
This should fix a crash in RLS when editing such code. cc @nrc
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
