about summary refs log tree commit diff
path: root/src/librustc_trans/common.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2017-10-19 11:01:31 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2017-10-19 11:01:31 +0200
commit906523efea60f4d58d6ce58bc61589d4ff3d7b4e (patch)
treefc1effcd46f2827dfc809ba2a25bdd16de0943fe /src/librustc_trans/common.rs
parentb7960878ba77124505aabe7dc99d0a898354c326 (diff)
downloadrust-906523efea60f4d58d6ce58bc61589d4ff3d7b4e.tar.gz
rust-906523efea60f4d58d6ce58bc61589d4ff3d7b4e.zip
Move collector to rustc_trans_utils
Diffstat (limited to 'src/librustc_trans/common.rs')
-rw-r--r--src/librustc_trans/common.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/librustc_trans/common.rs b/src/librustc_trans/common.rs
index 52607904f73..e3856cabcf9 100644
--- a/src/librustc_trans/common.rs
+++ b/src/librustc_trans/common.rs
@@ -36,7 +36,6 @@ use libc::{c_uint, c_char};
 use std::iter;
 
 use syntax::abi::Abi;
-use syntax::attr;
 use syntax::symbol::InternedString;
 use syntax_pos::{Span, DUMMY_SP};
 
@@ -552,22 +551,6 @@ pub fn ty_fn_sig<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
     }
 }
 
-pub fn requests_inline<'a, 'tcx>(
-    tcx: TyCtxt<'a, 'tcx, 'tcx>,
-    instance: &ty::Instance<'tcx>
-) -> bool {
-    if is_inline_instance(tcx, instance) {
-        return true
-    }
-    if let ty::InstanceDef::DropGlue(..) = instance.def {
-        // Drop glue wants to be instantiated at every translation
-        // unit, but without an #[inline] hint. We should make this
-        // available to normal end-users.
-        return true
-    }
-    attr::requests_inline(&instance.def.attrs(tcx)[..])
-}
-
 pub fn is_inline_instance<'a, 'tcx>(
     tcx: TyCtxt<'a, 'tcx, 'tcx>,
     instance: &ty::Instance<'tcx>