]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trans/collector.rs
is_foreign_item
[rust.git] / src / librustc_trans / collector.rs
index 6d7d95f54872105ea12b790ee9cd1b8e656777a8..f0be0941ccf368b1b9f18f32f42b6527e404db83 100644 (file)
@@ -653,7 +653,7 @@ fn should_trans_locally<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, instance: &Instan
         Some(_) => true,
         None => {
             if tcx.sess.cstore.is_exported_symbol(def_id) ||
-                tcx.sess.cstore.is_foreign_item(def_id)
+                tcx.is_foreign_item(def_id)
             {
                 // We can link to the item in question, no instance needed
                 // in this crate