Correct typo in src/librustc_mir/const_eval.rs
Co-Authored-By: lqd <remy.rakic+github@gmail.com>
This commit is contained in:
parent
539813944d
commit
a28fbd4608
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue