diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-20 09:36:28 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-21 10:35:54 +1100 |
| commit | 2903bbbc156fb9707b43038af6723844fd4ccf29 (patch) | |
| tree | 390101b18fd0e9ef81ab70d788653e96b991f8e5 /compiler/rustc_resolve | |
| parent | 010f3944e0f0baac8d738da49772fd06acd3701b (diff) | |
| download | rust-2903bbbc156fb9707b43038af6723844fd4ccf29.tar.gz rust-2903bbbc156fb9707b43038af6723844fd4ccf29.zip | |
Convert `bug`s back to `delayed_bug`s.
This commit undoes some of the previous commit's mechanical changes, based on human judgment.
Diffstat (limited to 'compiler/rustc_resolve')
| -rw-r--r-- | compiler/rustc_resolve/src/late.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs index 676bc9db4a9..2f4da29133f 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -3681,9 +3681,9 @@ impl<'a: 'ast, 'b, 'ast, 'tcx> LateResolutionVisitor<'a, 'b, 'ast, 'tcx> { None } Res::SelfCtor(_) => { - // njn: remove comment? // We resolve `Self` in pattern position as an ident sometimes during recovery, - // so delay a bug instead of ICEing. + // so delay a bug instead of ICEing. (Note: is this no longer true? We now ICE. If + // this triggers, please convert to a delayed bug and add a test.) self.r.dcx().span_bug( ident.span, "unexpected `SelfCtor` in pattern, expected identifier" |
