]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_lint/unused.rs
Merge branch 'refactor-select' of https://github.com/aravind-pg/rust into update...
[rust.git] / src / librustc_lint / unused.rs
index 439533fae49d915d8e9bdb546355c82e7f6952a1..6ab3172c4fefaaa1604dfdf0ec72ae75d5521fe9 100644 (file)
@@ -72,7 +72,7 @@ fn check_stmt(&mut self, cx: &LateContext, s: &hir::Stmt) {
 
         let mut fn_warned = false;
         let mut op_warned = false;
-        if cx.tcx.sess.features.borrow().fn_must_use {
+        if cx.tcx.features().fn_must_use {
             let maybe_def = match expr.node {
                 hir::ExprCall(ref callee, _) => {
                     match callee.node {