Skip to content

Commit 763db5d

Browse files
committed
Convert a delayed bug to a bug.
This is never hit in the test suite. At some point the check should be removed entirely. There are a million places in the compiler where an empty symbol doesn't make sense, so a check of this nature has almost zero value. But I'll leave it in place for now just in case it gets hit by fuzzing or in the wild.
1 parent 6650252 commit 763db5d

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_hir_typeck/src

1 file changed

+1
-1
lines changed

compiler/rustc_hir_typeck/src/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2933,7 +2933,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
29332933
}
29342934

29352935
let guar = if field.name == kw::Empty {
2936-
self.dcx().span_delayed_bug(field.span, "field name with no name")
2936+
self.dcx().span_bug(field.span, "field name with no name")
29372937
} else if self.method_exists_for_diagnostic(
29382938
field,
29392939
base_ty,

0 commit comments

Comments
 (0)