fix: Make ConstEvalLateContext::new() public, to match the 'constant_context()' function that it replaced

This commit is contained in:
Morten Lohne 2023-05-29 21:39:05 +02:00
parent 5818225a89
commit ab1281f54a

View file

@ -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,