We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f0de4c commit aa1b7bfCopy full SHA for aa1b7bf
compiler/rustc_ast_lowering/src/item.rs
@@ -676,12 +676,9 @@ impl<'hir> LoweringContext<'_, 'hir> {
676
let ty =
677
self.lower_ty(ty, ImplTraitContext::Disallowed(ImplTraitPosition::StaticTy));
678
let safety = self.lower_safety(*safety, hir::Safety::Unsafe);
679
-
680
- // njn: where for this?
681
if define_opaque.is_some() {
682
self.dcx().span_err(i.span, "foreign statics cannot define opaque types");
683
}
684
685
(ident, hir::ForeignItemKind::Static(ty, *mutability, safety))
686
687
ForeignItemKind::TyAlias(box TyAlias { ident, .. }) => {
0 commit comments