Skip to content

Commit

Permalink
Move nll_relate to relate::nll submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Dec 15, 2023
1 parent 8ea3f0c commit 491bedc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_infer/src/infer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ use self::region_constraints::{
RegionConstraintCollector, RegionConstraintStorage, RegionSnapshot,
};
pub use self::relate::combine::CombineFields;
pub use self::relate::nll as nll_relate;
use self::type_variable::{TypeVariableOrigin, TypeVariableOriginKind};

pub mod at;
Expand All @@ -60,7 +61,6 @@ pub mod free_regions;
mod freshen;
mod fudge;
mod lexical_region_resolve;
pub mod nll_relate;
pub mod opaque_types;
pub mod outlives;
mod projection;
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_infer/src/infer/relate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ mod glb;
mod higher_ranked;
mod lattice;
mod lub;
pub mod nll;
mod sub;
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ use rustc_middle::ty::{self, InferConst, Ty, TyCtxt};
use rustc_span::{Span, Symbol};
use std::fmt::Debug;

use super::relate::combine::ObligationEmittingRelation;
use super::relate::generalize::{self, Generalization};
use super::combine::ObligationEmittingRelation;
use super::generalize::{self, Generalization};
use crate::infer::InferCtxt;
use crate::infer::{TypeVariableOrigin, TypeVariableOriginKind};
use crate::traits::{Obligation, PredicateObligations};
Expand Down

0 comments on commit 491bedc

Please sign in to comment.