Skip to content

Commit

Permalink
Correct typo in src/librustc_mir/const_eval.rs
Browse files Browse the repository at this point in the history
Co-Authored-By: lqd <remy.rakic+github@gmail.com>
  • Loading branch information
davidhewitt and lqd committed Nov 27, 2019
1 parent 5398139 commit a28fbd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/const_eval.rs
Expand Up @@ -148,7 +148,7 @@ fn eval_body_using_ecx<'mir, 'tcx>(
trace!("eval_body_using_ecx: pushing stack frame for global: {}{}", name, prom);

// Assert all args (if any) are zero-sized types; `eval_body_using_ecx` doesn't
// make sense if the body is expecting nontrival arguments.
// make sense if the body is expecting nontrivial arguments.
// (The alternative would be to use `eval_fn_call` with an args slice.)
for arg in body.args_iter() {
let decl = body.local_decls.get(arg).expect("arg missing from local_decls");
Expand Down

0 comments on commit a28fbd4

Please sign in to comment.