Skip to content

Commit 187a974

Browse files
committed
Make librustc compile.
1 parent d569120 commit 187a974

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

src/librustc/arena.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ macro_rules! arena_types {
5151
[] dropck_outlives:
5252
rustc::infer::canonical::Canonical<'tcx,
5353
rustc::infer::canonical::QueryResponse<'tcx,
54-
rustc::traits::query::dropck_outlives::DropckOutlivesResult<'tcx>
54+
rustc::traits::query::DropckOutlivesResult<'tcx>
5555
>
5656
>,
5757
[] normalize_projection_ty:
5858
rustc::infer::canonical::Canonical<'tcx,
5959
rustc::infer::canonical::QueryResponse<'tcx,
60-
rustc::traits::query::normalize::NormalizationResult<'tcx>
60+
rustc::traits::query::NormalizationResult<'tcx>
6161
>
6262
>,
6363
[] implied_outlives_bounds:
6464
rustc::infer::canonical::Canonical<'tcx,
6565
rustc::infer::canonical::QueryResponse<'tcx,
66-
Vec<rustc::traits::query::outlives_bounds::OutlivesBound<'tcx>>
66+
Vec<rustc::traits::query::OutlivesBound<'tcx>>
6767
>
6868
>,
6969
[] type_op_subtype:

src/librustc/infer/types/canonical.rs renamed to src/librustc/infer/canonical.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
//!
2222
//! [c]: https://rust-lang.github.io/rustc-guide/traits/canonicalization.html
2323
24-
use crate::infer::region_constraints::MemberConstraint;
24+
use crate::infer::MemberConstraint;
2525
use crate::ty::subst::GenericArg;
2626
use crate::ty::{self, BoundVar, List, Region, TyCtxt};
2727
use rustc_index::vec::IndexVec;

src/librustc/infer/types/mod.rs renamed to src/librustc/infer/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
pub mod canonical;
2+
pub mod unify_key;
23

34
use crate::ty::Region;
45
use crate::ty::Ty;

src/librustc/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
//! defined in the `ty` module. This includes the **type context**
1414
//! (or `tcx`), which is the central context during most of
1515
//! compilation, containing the interners and other things.
16-
//! - **Traits.** Trait resolution is implemented in the `traits` module.
17-
//! - **Type inference.** The type inference code can be found in the `infer` module;
18-
//! this code handles low-level equality and subtyping operations. The
19-
//! type check pass in the compiler is found in the `librustc_typeck` crate.
2016
//!
2117
//! For more information about how rustc works, see the [rustc guide].
2218
//!

src/librustc/traits/types/mod.rs renamed to src/librustc/traits/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pub mod select;
77
pub mod specialization_graph;
88
mod structural_impls;
99

10+
use crate::infer::canonical::Canonical;
1011
use crate::mir::interpret::ErrorHandled;
1112
use crate::ty::fold::{TypeFolder, TypeVisitor};
1213
use crate::ty::subst::SubstsRef;
@@ -22,6 +23,8 @@ use std::rc::Rc;
2223

2324
pub use self::select::{EvaluationCache, EvaluationResult, OverflowError, SelectionCache};
2425

26+
pub type ChalkCanonicalGoal<'tcx> = Canonical<'tcx, InEnvironment<'tcx, ty::Predicate<'tcx>>>;
27+
2528
pub use self::ObligationCauseCode::*;
2629
pub use self::SelectionError::*;
2730
pub use self::Vtable::*;
File renamed without changes.
File renamed without changes.

src/librustc/ty/query/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ use crate::mir::interpret::{LitToConstError, LitToConstInput};
1919
use crate::mir::mono::CodegenUnit;
2020
use crate::session::config::{EntryFnType, OptLevel, OutputFilenames, SymbolManglingVersion};
2121
use crate::session::CrateDisambiguator;
22-
use crate::traits::query::dropck_outlives::{DropckOutlivesResult, DtorckConstraint};
23-
use crate::traits::query::method_autoderef::MethodAutoderefStepsResult;
24-
use crate::traits::query::normalize::NormalizationResult;
25-
use crate::traits::query::outlives_bounds::OutlivesBound;
2622
use crate::traits::query::{
2723
CanonicalPredicateGoal, CanonicalProjectionGoal, CanonicalTyGoal,
2824
CanonicalTypeOpAscribeUserTypeGoal, CanonicalTypeOpEqGoal, CanonicalTypeOpNormalizeGoal,
2925
CanonicalTypeOpProvePredicateGoal, CanonicalTypeOpSubtypeGoal, NoSolution,
3026
};
27+
use crate::traits::query::{
28+
DropckOutlivesResult, DtorckConstraint, MethodAutoderefStepsResult, NormalizationResult,
29+
OutlivesBound,
30+
};
3131
use crate::traits::specialization_graph;
3232
use crate::traits::Clauses;
3333
use crate::traits::{self, Vtable};

0 commit comments

Comments
 (0)