Skip to content

Commit aa1b7bf

Browse files
committed
Remove an unwanted comment.
I accidentally added this in rust-lang#138740.
1 parent 4f0de4c commit aa1b7bf

File tree

1 file changed

+0
-3
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+0
-3
lines changed

compiler/rustc_ast_lowering/src/item.rs

-3
Original file line numberDiff line numberDiff line change
@@ -676,12 +676,9 @@ impl<'hir> LoweringContext<'_, 'hir> {
676676
let ty =
677677
self.lower_ty(ty, ImplTraitContext::Disallowed(ImplTraitPosition::StaticTy));
678678
let safety = self.lower_safety(*safety, hir::Safety::Unsafe);
679-
680-
// njn: where for this?
681679
if define_opaque.is_some() {
682680
self.dcx().span_err(i.span, "foreign statics cannot define opaque types");
683681
}
684-
685682
(ident, hir::ForeignItemKind::Static(ty, *mutability, safety))
686683
}
687684
ForeignItemKind::TyAlias(box TyAlias { ident, .. }) => {

0 commit comments

Comments
 (0)