]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/op.rs
Replace illegal with invalid in most diagnostics
[rust.git] / src / librustc_typeck / check / op.rs
index c419a986f95b189491811fe1a1476af6a0386798..c6d13d3b0a5ca6326e4860b5c45257fcf945c53c 100644 (file)
@@ -57,7 +57,7 @@ pub fn check_binop_assign<'a,'tcx>(fcx: &FnCtxt<'a,'tcx>,
 
     let tcx = fcx.tcx();
     if !tcx.expr_is_lval(lhs_expr) {
-        span_err!(tcx.sess, lhs_expr.span, E0067, "illegal left-hand side expression");
+        span_err!(tcx.sess, lhs_expr.span, E0067, "invalid left-hand side expression");
     }
 
     fcx.require_expr_have_sized_type(lhs_expr, traits::AssignmentLhsSized);