diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-04 09:34:47 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-04 09:59:25 +1100 |
| commit | aa1b7bf070376b9b895d36a64263a5959eefebdd (patch) | |
| tree | a316ef3e0bda2db96e1cea2aa35620cbdcf2d33d | |
| parent | 4f0de4c81d80121ac7b576bc68d8016064f4d261 (diff) | |
| download | rust-aa1b7bf070376b9b895d36a64263a5959eefebdd.tar.gz rust-aa1b7bf070376b9b895d36a64263a5959eefebdd.zip | |
Remove an unwanted comment.
I accidentally added this in #138740.
| -rw-r--r-- | compiler/rustc_ast_lowering/src/item.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_ast_lowering/src/item.rs b/compiler/rustc_ast_lowering/src/item.rs index 28f596ac092..958a6917dff 100644 --- a/compiler/rustc_ast_lowering/src/item.rs +++ b/compiler/rustc_ast_lowering/src/item.rs @@ -676,12 +676,9 @@ impl<'hir> LoweringContext<'_, 'hir> { let ty = self.lower_ty(ty, ImplTraitContext::Disallowed(ImplTraitPosition::StaticTy)); let safety = self.lower_safety(*safety, hir::Safety::Unsafe); - - // njn: where for this? if define_opaque.is_some() { self.dcx().span_err(i.span, "foreign statics cannot define opaque types"); } - (ident, hir::ForeignItemKind::Static(ty, *mutability, safety)) } ForeignItemKind::TyAlias(box TyAlias { ident, .. }) => { |
