]> git.lizzy.rs Git - rust.git/commitdiff
Remove require_owned_box
authorleonardo.yvens <leoyvens@gmail.com>
Wed, 13 Sep 2017 14:16:45 +0000 (11:16 -0300)
committerleonardo.yvens <leoyvens@gmail.com>
Wed, 13 Sep 2017 14:16:45 +0000 (11:16 -0300)
It's unused and unnecessary

src/librustc/middle/lang_items.rs

index ad243a1061d5f082795819cc54f4da131ce912e1..645da2475c62767f62e96c5a69a97208c41c1a90 100644 (file)
@@ -83,10 +83,6 @@ pub fn require(&self, it: LangItem) -> Result<DefId, String> {
         }
     }
 
-    pub fn require_owned_box(&self) -> Result<DefId, String> {
-        self.require(OwnedBoxLangItem)
-    }
-
     pub fn fn_trait_kind(&self, id: DefId) -> Option<ty::ClosureKind> {
         let def_id_kinds = [
             (self.fn_trait(), ty::ClosureKind::Fn),