about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2020-02-03 15:02:30 -0800
committerDylan MacKenzie <ecstaticmorse@gmail.com>2020-02-18 21:03:28 -0800
commit5e422efba1be879633c7be7ad178915f2ace7f04 (patch)
treebb17ee617dadd192b8af195c0c1c83c46f8f8995
parent3e0b0605a04d029ff812147f3d54f95a211769b1 (diff)
downloadrust-5e422efba1be879633c7be7ad178915f2ace7f04.tar.gz
rust-5e422efba1be879633c7be7ad178915f2ace7f04.zip
Remove "not yet implemented" warning
-rw-r--r--src/librustc_ast_lowering/item.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/librustc_ast_lowering/item.rs b/src/librustc_ast_lowering/item.rs
index e0db8606bc2..ad7221b16b2 100644
--- a/src/librustc_ast_lowering/item.rs
+++ b/src/librustc_ast_lowering/item.rs
@@ -66,15 +66,7 @@ impl<'a> Visitor<'a> for ItemLowerer<'a, '_, '_> {
         if let Some(hir_id) = item_hir_id {
             self.lctx.with_parent_item_lifetime_defs(hir_id, |this| {
                 let this = &mut ItemLowerer { lctx: this };
-                if let ItemKind::Impl { constness, ref of_trait, .. } = item.kind {
-                    if let Const::Yes(span) = constness {
-                        this.lctx
-                            .diagnostic()
-                            .struct_span_err(item.span, "const trait impls are not yet implemented")
-                            .span_label(span, "const because of this")
-                            .emit();
-                    }
-
+                if let ItemKind::Impl { ref of_trait, .. } = item.kind {
                     this.with_trait_impl_ref(of_trait, |this| visit::walk_item(this, item));
                 } else {
                     visit::walk_item(this, item);