]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_incremental/persist/dirty_clean.rs
Merge branch 'refactor-select' of https://github.com/aravind-pg/rust into update...
[rust.git] / src / librustc_incremental / persist / dirty_clean.rs
index c3e283535ec8280fd2ba6da371a02a7f2c4e3e23..e114606a631159c142461f4d67a730c942eb1a8d 100644 (file)
@@ -219,7 +219,7 @@ fn from_dirty_labels(labels: Labels) -> Assertion {
 
 pub fn check_dirty_clean_annotations<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) {
     // can't add `#[rustc_dirty]` etc without opting in to this feature
-    if !tcx.sess.features.borrow().rustc_attrs {
+    if !tcx.features().rustc_attrs {
         return;
     }