]> git.lizzy.rs Git - rust.git/commitdiff
Not seeing the forest because there are too many trees in the way
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Wed, 9 Jan 2019 15:34:31 +0000 (16:34 +0100)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Wed, 9 Jan 2019 15:34:31 +0000 (16:34 +0100)
src/librustc_mir/const_eval.rs

index 594496fe9722ceb4c2914c286bb4640a6ffbc773..d79e0a817eeeda9129733123cc9166d92373acac 100644 (file)
@@ -90,7 +90,7 @@ fn mk_eval_cx_inner<'a, 'mir, 'tcx>(
 /// The function containing the `match` that is currently being analyzed may have generic bounds
 /// that inform us about the generic bounds of the constant. E.g. using an associated constant
 /// of a function's generic parameter will require knowledge about the bounds on the generic
-/// parameter.
+/// parameter. These bounds are passed to `mk_eval_cx` via the `ParamEnv` argument.
 fn mk_eval_cx<'a, 'tcx>(
     tcx: TyCtxt<'a, 'tcx, 'tcx>,
     instance: Instance<'tcx>,