]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_plugin/load.rs
Various minor/cosmetic improvements to code
[rust.git] / src / librustc_plugin / load.rs
index a46b85d93cbb82cc3024e0b533822d26997a7739..ad55672fb47de7d8a3699f74e5dc436342a15c28 100644 (file)
@@ -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;
@@ -144,7 +144,7 @@ fn dylink_registrar(&mut self,
 
             // Intentionally leak the dynamic library. We can't ever unload it
             // since the library can make things that will live arbitrarily long
-            // (e.g. an @-box cycle or a thread).
+            // (e.g., an @-box cycle or a thread).
             mem::forget(lib);
 
             registrar