Skip to content

Commit ab1281f

Browse files
committed
fix: Make ConstEvalLateContext::new() public, to match the 'constant_context()' function that it replaced
1 parent 5818225 commit ab1281f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ pub struct ConstEvalLateContext<'a, 'tcx> {
329329
}
330330

331331
impl<'a, 'tcx> ConstEvalLateContext<'a, 'tcx> {
332-
fn new(lcx: &'a LateContext<'tcx>, typeck_results: &'a ty::TypeckResults<'tcx>) -> Self {
332+
pub fn new(lcx: &'a LateContext<'tcx>, typeck_results: &'a ty::TypeckResults<'tcx>) -> Self {
333333
Self {
334334
lcx,
335335
typeck_results,

0 commit comments

Comments
 (0)