fix: Make ConstEvalLateContext::new() public, to match the 'constant_context()' function that it replaced
This commit is contained in:
parent
5818225a89
commit
ab1281f54a
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue