Skip to content

Commit 0de6173

Browse files
committed
Move some use declarations.
So they're all in the one place. Also prepend with `crate::`, à la the `unqualified_local_imports` lint.
1 parent 16ac849 commit 0de6173

File tree

1 file changed

+12
-13
lines changed
  • compiler/rustc_borrowck/src

1 file changed

+12
-13
lines changed

compiler/rustc_borrowck/src/lib.rs

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use std::collections::BTreeMap;
2020
use std::marker::PhantomData;
2121
use std::ops::Deref;
2222

23-
use consumers::{BodyWithBorrowckFacts, ConsumerOptions};
2423
use rustc_data_structures::fx::{FxIndexMap, FxIndexSet};
2524
use rustc_data_structures::graph::dominators::Dominators;
2625
use rustc_errors::Diag;
@@ -49,10 +48,18 @@ use rustc_target::abi::FieldIdx;
4948
use smallvec::SmallVec;
5049
use tracing::{debug, instrument};
5150

52-
use self::diagnostics::{AccessKind, IllegalMoveOriginKind, MoveError, RegionName};
53-
use self::location::LocationTable;
54-
use self::path_utils::*;
55-
use self::prefixes::PrefixSet;
51+
use crate::borrow_set::{BorrowData, BorrowSet};
52+
use crate::consumers::{BodyWithBorrowckFacts, ConsumerOptions};
53+
use crate::dataflow::{BorrowIndex, BorrowckDomain, BorrowckResults, Borrows};
54+
use crate::diagnostics::{AccessKind, IllegalMoveOriginKind, MoveError, RegionName};
55+
use crate::location::LocationTable;
56+
use crate::nll::PoloniusOutput;
57+
use crate::path_utils::*;
58+
use crate::place_ext::PlaceExt;
59+
use crate::places_conflict::{PlaceConflictBias, places_conflict};
60+
use crate::prefixes::PrefixSet;
61+
use crate::region_infer::RegionInferenceContext;
62+
use crate::renumber::RegionCtxt;
5663
use crate::session_diagnostics::VarNeedNotMut;
5764

5865
mod borrow_set;
@@ -81,14 +88,6 @@ mod util;
8188
/// A public API provided for the Rust compiler consumers.
8289
pub mod consumers;
8390

84-
use borrow_set::{BorrowData, BorrowSet};
85-
use dataflow::{BorrowIndex, BorrowckDomain, BorrowckResults, Borrows};
86-
use nll::PoloniusOutput;
87-
use place_ext::PlaceExt;
88-
use places_conflict::{PlaceConflictBias, places_conflict};
89-
use region_infer::RegionInferenceContext;
90-
use renumber::RegionCtxt;
91-
9291
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
9392

9493
/// Associate some local constants with the `'tcx` lifetime

0 commit comments

Comments
 (0)