about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorJieyou Xu <jieyouxu@outlook.com>2024-11-21 18:40:36 +0800
committerJieyou Xu <jieyouxu@outlook.com>2024-11-21 18:40:36 +0800
commit5d30436d244d207406ec8e4a2fbeb510555cba20 (patch)
tree02d6dbe9880b49697eaf526992cdb68640f20079 /compiler/rustc_codegen_gcc/example/std_example.rs
parent318f96a8cf3eca5c4aaf60a992f349bce5c3fd41 (diff)
downloadrust-5d30436d244d207406ec8e4a2fbeb510555cba20.tar.gz
rust-5d30436d244d207406ec8e4a2fbeb510555cba20.zip
Re-delay a resolve `bug`
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 target tested case.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions