diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-11-23 20:19:53 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-23 20:19:53 +0800 |
| commit | 4d9cd661c73fd57c58751ae2909adde64f9bdedb (patch) | |
| tree | fa9e16d491e8eb8d666e8e3ae7a9172fbef1a456 /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | f7e3de36fcf70dfbf5ce4a35cbe8a32ec13c8d31 (diff) | |
| parent | 5d30436d244d207406ec8e4a2fbeb510555cba20 (diff) | |
| download | rust-4d9cd661c73fd57c58751ae2909adde64f9bdedb.tar.gz rust-4d9cd661c73fd57c58751ae2909adde64f9bdedb.zip | |
Rollup merge of #133286 - jieyouxu:bug-ourselves, r=compiler-errors
Re-delay a resolve `bug` related to `Self`-ctor in patterns
For the code pattern reported in <https://github.com/rust-lang/rust/issues/133272>,
```rs
impl Foo {
fn fun() {
let S { ref Self } = todo!();
}
}
```
<https://github.com/rust-lang/rust/pull/121208> converted this to a `span_bug` from a `span_delayed_bug` because this specific self-ctor code pattern lacked test coverage. It turns out this can be hit but we just lacked test coverage, so change it back to a `span_delayed_bug` and add a targeted test case.
Follow-up to #121208, cc ``@nnethercote`` (very good exercise to expose our test coverage gaps).
Fixes #133272.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
