Move some use declarations.

So they're all in the one place. Also prepend with `crate::`, à la the
`unqualified_local_imports` lint.
This commit is contained in:
Nicholas Nethercote 2024-10-04 10:21:55 +10:00
parent 6676cec925
commit ad875529bf

View File

@ -20,7 +20,6 @@ use std::collections::BTreeMap;
use std::marker::PhantomData; use std::marker::PhantomData;
use std::ops::Deref; use std::ops::Deref;
use consumers::{BodyWithBorrowckFacts, ConsumerOptions};
use rustc_abi::FieldIdx; use rustc_abi::FieldIdx;
use rustc_data_structures::fx::{FxIndexMap, FxIndexSet}; use rustc_data_structures::fx::{FxIndexMap, FxIndexSet};
use rustc_data_structures::graph::dominators::Dominators; use rustc_data_structures::graph::dominators::Dominators;
@ -49,10 +48,18 @@ use rustc_span::{Span, Symbol};
use smallvec::SmallVec; use smallvec::SmallVec;
use tracing::{debug, instrument}; use tracing::{debug, instrument};
use self::diagnostics::{AccessKind, IllegalMoveOriginKind, MoveError, RegionName}; use crate::borrow_set::{BorrowData, BorrowSet};
use self::location::LocationTable; use crate::consumers::{BodyWithBorrowckFacts, ConsumerOptions};
use self::path_utils::*; use crate::dataflow::{BorrowIndex, BorrowckDomain, BorrowckResults, Borrows};
use self::prefixes::PrefixSet; use crate::diagnostics::{AccessKind, IllegalMoveOriginKind, MoveError, RegionName};
use crate::location::LocationTable;
use crate::nll::PoloniusOutput;
use crate::path_utils::*;
use crate::place_ext::PlaceExt;
use crate::places_conflict::{PlaceConflictBias, places_conflict};
use crate::prefixes::PrefixSet;
use crate::region_infer::RegionInferenceContext;
use crate::renumber::RegionCtxt;
use crate::session_diagnostics::VarNeedNotMut; use crate::session_diagnostics::VarNeedNotMut;
mod borrow_set; mod borrow_set;
@ -81,14 +88,6 @@ mod util;
/// A public API provided for the Rust compiler consumers. /// A public API provided for the Rust compiler consumers.
pub mod consumers; pub mod consumers;
use borrow_set::{BorrowData, BorrowSet};
use dataflow::{BorrowIndex, BorrowckDomain, BorrowckResults, Borrows};
use nll::PoloniusOutput;
use place_ext::PlaceExt;
use places_conflict::{PlaceConflictBias, places_conflict};
use region_infer::RegionInferenceContext;
use renumber::RegionCtxt;
rustc_fluent_macro::fluent_messages! { "../messages.ftl" } rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
/// Associate some local constants with the `'tcx` lifetime /// Associate some local constants with the `'tcx` lifetime