]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_ast/ast.rs
Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis
[rust.git] / src / librustc_ast / ast.rs
index d3e3546cf31e49259bb32beede7b3a820cff441f..62406552e318f1e6a7b07905a5db01acfd2fb0b0 100644 (file)
@@ -1860,15 +1860,6 @@ pub fn is_implicit_self(&self) -> bool {
     pub fn is_unit(&self) -> bool {
         if let TyKind::Tup(ref tys) = *self { tys.is_empty() } else { false }
     }
-
-    /// HACK(type_alias_impl_trait, Centril): A temporary crutch used
-    /// in lowering to avoid making larger changes there and beyond.
-    pub fn opaque_top_hack(&self) -> Option<&GenericBounds> {
-        match self {
-            Self::ImplTrait(_, bounds) => Some(bounds),
-            _ => None,
-        }
-    }
 }
 
 /// Syntax used to declare a trait object.