about summary refs log tree commit diff
path: root/src/librustc_plugin
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-03-24 09:31:26 +0100
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-03-27 08:58:00 +0200
commiteb447f4ef436f0c6211a13de1e6150a09228a9c6 (patch)
tree88f3553738466c1d1807ca34febf4283f944d23e /src/librustc_plugin
parent79feb9476d9275cb6abac88affdbfd3c922a2805 (diff)
downloadrust-eb447f4ef436f0c6211a13de1e6150a09228a9c6.tar.gz
rust-eb447f4ef436f0c6211a13de1e6150a09228a9c6.zip
Fix various useless derefs and slicings
Diffstat (limited to 'src/librustc_plugin')
-rw-r--r--src/librustc_plugin/load.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_plugin/load.rs b/src/librustc_plugin/load.rs
index 1bfc445fca9..efe9963cecc 100644
--- a/src/librustc_plugin/load.rs
+++ b/src/librustc_plugin/load.rs
@@ -126,19 +126,19 @@ impl<'a> PluginLoader<'a> {
             // inside this crate, so continue would spew "macro undefined"
             // errors
             Err(err) => {
-                self.sess.span_fatal(span, &err[..])
+                self.sess.span_fatal(span, &err)
             }
         };
 
         unsafe {
             let registrar =
-                match lib.symbol(&symbol[..]) {
+                match lib.symbol(&symbol) {
                     Ok(registrar) => {
                         mem::transmute::<*mut u8,PluginRegistrarFun>(registrar)
                     }
                     // again fatal if we can't register macros
                     Err(err) => {
-                        self.sess.span_fatal(span, &err[..])
+                        self.sess.span_fatal(span, &err)
                     }
                 };