Skip to content

Commit 05cc3c0

Browse files
committed
or-patterns: liveness: is_argument -> is_param.
Pacify `tidy`. It's also more correct in this context.
1 parent 56b055a commit 05cc3c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/liveness.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1550,9 +1550,9 @@ impl<'tcx> Liveness<'_, 'tcx> {
15501550
}
15511551
}
15521552

1553-
fn report_dead_assign(&self, hir_id: HirId, spans: Vec<Span>, var: Variable, is_argument: bool) {
1553+
fn report_dead_assign(&self, hir_id: HirId, spans: Vec<Span>, var: Variable, is_param: bool) {
15541554
if let Some(name) = self.should_warn(var) {
1555-
if is_argument {
1555+
if is_param {
15561556
self.ir.tcx.struct_span_lint_hir(lint::builtin::UNUSED_ASSIGNMENTS, hir_id, spans,
15571557
&format!("value passed to `{}` is never read", name))
15581558
.help("maybe it is overwritten before being read?")

0 commit comments

Comments
 (0)