diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-04-11 08:03:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-11 08:03:50 +0000 |
| commit | b1c9a6ba64d3ca9d539947dc72bacf0be8965e55 (patch) | |
| tree | 0725e36e04747d16ad60f3ed737969cb1b1ebc35 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 24cf957627d5ede1b395f92ff871fd7a281d49a4 (diff) | |
| parent | 51d66714aca5886382c92ea929cc59c1c3b166d9 (diff) | |
| download | rust-b1c9a6ba64d3ca9d539947dc72bacf0be8965e55.tar.gz rust-b1c9a6ba64d3ca9d539947dc72bacf0be8965e55.zip | |
Merge #11957
11957: fix panic on GAT r=flodiebold a=skyzh Signed-off-by: Alex Chi <iskyzh@gmail.com> This is still a workaround on GAT panic, and didn't solve the full problem. But at least we won't panic now. False positive is better than panicking and letting VSCode constantly pop out the warning 🤣 This PR is simple -- only apply the https://github.com/rust-analyzer/rust-analyzer/pull/11878 fix on const generics. For normal GATs, just follow the previous approach. This PR fixes https://github.com/rust-analyzer/rust-analyzer/issues/11939, I've added it as a test case. This PR didn't fully fix / https://github.com/rust-analyzer/rust-analyzer/issues/11923. But at least it won't panic now -- will only give a type mismatch error. Not sure if it fixes / https://github.com/rust-analyzer/rust-analyzer/issues/11921, I'll test it later. cc `@flodiebold` for review, thanks! Co-authored-by: Alex Chi <iskyzh@gmail.com>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
