]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_incremental/assert_dep_graph.rs
Merge branch 'refactor-select' of https://github.com/aravind-pg/rust into update...
[rust.git] / src / librustc_incremental / assert_dep_graph.rs
index 5976b80d90f871f0f8e164b249848e855bf0a5be..17a6176b79e954d4cbb72d2968cb65dff82cf12f 100644 (file)
@@ -69,7 +69,7 @@ pub fn assert_dep_graph<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) {
         // if the `rustc_attrs` feature is not enabled, then the
         // attributes we are interested in cannot be present anyway, so
         // skip the walk.
-        if !tcx.sess.features.borrow().rustc_attrs {
+        if !tcx.features().rustc_attrs {
             return;
         }