Skip to content

Commit 89f7693

Browse files
Move nll_relate to relate::nll submodule
1 parent 8ea3f0c commit 89f7693

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

compiler/rustc_infer/src/infer/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ use self::region_constraints::{
5151
RegionConstraintCollector, RegionConstraintStorage, RegionSnapshot,
5252
};
5353
pub use self::relate::combine::CombineFields;
54+
pub use self::relate::nll as nll_relate;
5455
use self::type_variable::{TypeVariableOrigin, TypeVariableOriginKind};
5556

5657
pub mod at;
@@ -60,7 +61,6 @@ pub mod free_regions;
6061
mod freshen;
6162
mod fudge;
6263
mod lexical_region_resolve;
63-
pub mod nll_relate;
6464
pub mod opaque_types;
6565
pub mod outlives;
6666
mod projection;
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! This module contains the definitions of most `TypeRelation`s in the type system
2-
//! (except for the NLL `TypeRelating`, and some relations used for diagnostics
3-
//! and heuristics in the compiler).
2+
//! (except for some relations used for diagnostics and heuristics in the compiler).
43
54
pub(super) mod combine;
65
mod equate;
@@ -9,4 +8,5 @@ mod glb;
98
mod higher_ranked;
109
mod lattice;
1110
mod lub;
11+
pub mod nll;
1212
mod sub;

compiler/rustc_infer/src/infer/nll_relate/mod.rs renamed to compiler/rustc_infer/src/infer/relate/nll.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ use rustc_middle::ty::{self, InferConst, Ty, TyCtxt};
3030
use rustc_span::{Span, Symbol};
3131
use std::fmt::Debug;
3232

33-
use super::relate::combine::ObligationEmittingRelation;
34-
use super::relate::generalize::{self, Generalization};
33+
use super::combine::ObligationEmittingRelation;
34+
use super::generalize::{self, Generalization};
3535
use crate::infer::InferCtxt;
3636
use crate::infer::{TypeVariableOrigin, TypeVariableOriginKind};
3737
use crate::traits::{Obligation, PredicateObligations};

0 commit comments

Comments
 (0)