Skip to content

Commit

Permalink
Fix typo in #[must_use] message
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Nov 19, 2018
1 parent 9178eb4 commit 0ab70fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_lint/unused.rs
Expand Up @@ -183,7 +183,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnusedResults {
for attr in cx.tcx.get_attrs(def_id).iter() {
if attr.check_name("must_use") {
let msg = format!("unused {}`{}`{} that must be used",
descr_pre_path, descr_post_path, cx.tcx.item_path_str(def_id));
descr_pre_path, cx.tcx.item_path_str(def_id), descr_post_path);
let mut err = cx.struct_span_lint(UNUSED_MUST_USE, sp, &msg);
// check for #[must_use = "..."]
if let Some(note) = attr.value_str() {
Expand Down

0 comments on commit 0ab70fa

Please sign in to comment.