]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_lint/unused.rs
preserve order if blocks are between items
[rust.git] / src / librustc_lint / unused.rs
index 3d64fa572d1e703adffa76939a3cf4cbdd6de4a0..da291f56ee4e56ce175817dc7f1c42caf02e100f 100644 (file)
@@ -146,7 +146,7 @@ fn check_stmt(&mut self, cx: &LateContext, s: &hir::Stmt) {
         fn check_must_use(cx: &LateContext, def_id: DefId, sp: Span, describe_path: &str) -> bool {
             for attr in cx.tcx.get_attrs(def_id).iter() {
                 if attr.check_name("must_use") {
-                    let mut msg = format!("unused {}`{}` which must be used",
+                    let msg = format!("unused {}`{}` which must be used",
                                           describe_path, cx.tcx.item_path_str(def_id));
                     let mut err = cx.struct_span_lint(UNUSED_MUST_USE, sp, &msg);
                     // check for #[must_use = "..."]