about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDavid Hewitt <1939362+davidhewitt@users.noreply.github.com>2019-11-27 16:44:53 +0000
committerGitHub <noreply@github.com>2019-11-27 16:44:53 +0000
commita28fbd46082f8ff6dd09dbbbaa553f09bd6ff824 (patch)
tree5a95017eccd4c52de75795c1ad1118bb4d27b861 /src
parent539813944d69ae20e5c576ccd05578f861ee895b (diff)
downloadrust-a28fbd46082f8ff6dd09dbbbaa553f09bd6ff824.tar.gz
rust-a28fbd46082f8ff6dd09dbbbaa553f09bd6ff824.zip
Correct typo in src/librustc_mir/const_eval.rs
Co-Authored-By: lqd <remy.rakic+github@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/const_eval.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/const_eval.rs b/src/librustc_mir/const_eval.rs
index 3352f7ae658..e42acbf5dbc 100644
--- a/src/librustc_mir/const_eval.rs
+++ b/src/librustc_mir/const_eval.rs
@@ -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");