]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/traits/specialize/mod.rs
Merge branch 'refactor-select' of https://github.com/aravind-pg/rust into update...
[rust.git] / src / librustc / traits / specialize / mod.rs
index 43940d7cea3ed6a24a5cf841c2374f87f02dd64e..d11565618a687ede894f069fa6f841c4ab38599c 100644 (file)
@@ -164,7 +164,7 @@ pub(super) fn specializes<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
 
     // The feature gate should prevent introducing new specializations, but not
     // taking advantage of upstream ones.
-    if !tcx.sess.features.borrow().specialization &&
+    if !tcx.features().specialization &&
         (impl1_def_id.is_local() || impl2_def_id.is_local()) {
         return false;
     }