diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-04-24 18:06:39 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-04-24 18:06:39 +0300 |
| commit | decf7598ef3a245ddaed9272091b3afc3466617f (patch) | |
| tree | 537cf185b8c1c8b3ddd32e43261fdbdbb621c823 /src/librustc_const_eval | |
| parent | 9bde6b6d96ccb76825c8e3bca54c28727ceeed63 (diff) | |
rustc: use tcx.at(span) to set the location of a query.
Diffstat (limited to 'src/librustc_const_eval')
| -rw-r--r-- | src/librustc_const_eval/eval.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_const_eval/eval.rs b/src/librustc_const_eval/eval.rs index e7ccf3cbdb8..9470316c7e7 100644 --- a/src/librustc_const_eval/eval.rs +++ b/src/librustc_const_eval/eval.rs @@ -299,7 +299,7 @@ fn eval_const_expr_partial<'a, 'tcx>(cx: &ConstContext<'a, 'tcx>, match cx.tables.qpath_def(qpath, e.id) { Def::Const(def_id) | Def::AssociatedConst(def_id) => { - match ty::queries::const_eval::get(tcx, e.span, (def_id, substs)) { + match tcx.at(e.span).const_eval((def_id, substs)) { Ok(val) => val, Err(ConstEvalErr { kind: TypeckError, .. }) => { signal!(e, TypeckError); |
