From ab1281f54a94bf59d0fab2941c0c642158fae122 Mon Sep 17 00:00:00 2001 From: Morten Lohne Date: Mon, 29 May 2023 21:39:05 +0200 Subject: [PATCH] fix: Make ConstEvalLateContext::new() public, to match the 'constant_context()' function that it replaced --- clippy_utils/src/consts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_utils/src/consts.rs b/clippy_utils/src/consts.rs index 061086c4fc2..63dfd2145b8 100644 --- a/clippy_utils/src/consts.rs +++ b/clippy_utils/src/consts.rs @@ -329,7 +329,7 @@ pub struct ConstEvalLateContext<'a, 'tcx> { } impl<'a, 'tcx> ConstEvalLateContext<'a, 'tcx> { - fn new(lcx: &'a LateContext<'tcx>, typeck_results: &'a ty::TypeckResults<'tcx>) -> Self { + pub fn new(lcx: &'a LateContext<'tcx>, typeck_results: &'a ty::TypeckResults<'tcx>) -> Self { Self { lcx, typeck_results,