1
Fork 0
rust/compiler/rustc_resolve/src
许杰友 Jieyou Xu (Joe) 4d9cd661c7
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.
2024-11-23 20:19:53 +08:00
..
late use verbose for path separator suggestion 2024-11-08 16:58:19 +00:00
build_reduced_graph.rs Make WalkItemKind::walk signature compatible between Visitor versions 2024-11-15 17:01:53 -03:00
check_unused.rs compiler: use is_none_or where it is clearly better 2024-10-16 23:50:13 -07:00
def_collector.rs Check for both StmtKind::MacCall and ExprKind::MacCall 2024-11-05 18:23:21 +00:00
diagnostics.rs Rollup merge of #132949 - clubby789:macro-rules-attr-derive, r=fmease 2024-11-23 20:19:53 +08:00
effective_visibilities.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
errors.rs Diagnostic for using macro_rules macro as attr/derive 2024-11-22 16:49:10 +00:00
ident.rs Store resolution for self and crate root module segments 2024-11-20 18:57:02 +00:00
imports.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
late.rs Re-delay a resolve bug 2024-11-21 18:40:36 +08:00
lib.rs Remove Resolver::empty_disambiguator. 2024-11-14 12:08:20 +11:00
macros.rs Rollup merge of #131375 - klensy:clone_on_ref_ptr, r=cjgillot 2024-10-29 03:11:39 -07:00
rustdoc.rs Handle librustdoc cases of rustc::potential_query_instability lint 2024-10-06 10:39:03 +03:00