mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 05:56:56 +00:00
fix: Make ConstEvalLateContext::new() public, to match the 'constant_context()' function that it replaced
This commit is contained in:
parent
5818225a89
commit
ab1281f54a
@ -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…
Reference in New Issue
Block a user