Skip to content

Commit 5e422ef

Browse files
Remove "not yet implemented" warning
1 parent 3e0b060 commit 5e422ef

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/librustc_ast_lowering/item.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,7 @@ impl<'a> Visitor<'a> for ItemLowerer<'a, '_, '_> {
6666
if let Some(hir_id) = item_hir_id {
6767
self.lctx.with_parent_item_lifetime_defs(hir_id, |this| {
6868
let this = &mut ItemLowerer { lctx: this };
69-
if let ItemKind::Impl { constness, ref of_trait, .. } = item.kind {
70-
if let Const::Yes(span) = constness {
71-
this.lctx
72-
.diagnostic()
73-
.struct_span_err(item.span, "const trait impls are not yet implemented")
74-
.span_label(span, "const because of this")
75-
.emit();
76-
}
77-
69+
if let ItemKind::Impl { ref of_trait, .. } = item.kind {
7870
this.with_trait_impl_ref(of_trait, |this| visit::walk_item(this, item));
7971
} else {
8072
visit::walk_item(this, item);

0 commit comments

Comments
 (0)