From 542bc75deaaf4e84dcd7a196685bc1a1cb100d32 Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Wed, 14 Feb 2018 16:11:02 +0100 Subject: Turn features() into a query. --- src/librustc_plugin/load.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librustc_plugin') diff --git a/src/librustc_plugin/load.rs b/src/librustc_plugin/load.rs index a46b85d93cb..bf59165a9c4 100644 --- a/src/librustc_plugin/load.rs +++ b/src/librustc_plugin/load.rs @@ -52,7 +52,7 @@ pub fn load_plugins(sess: &Session, // do not report any error now. since crate attributes are // not touched by expansion, every use of plugin without // the feature enabled will result in an error later... - if sess.features.borrow().plugin { + if sess.features_untracked().plugin { for attr in &krate.attrs { if !attr.check_name("plugin") { continue; -- cgit 1.4.1-3-g733a5