Move MapInPlace to rustc_data_structures

This commit is contained in:
Yuki Okushi 2020-04-18 13:01:54 +09:00
parent cff9a758ae
commit 58ad251ea8
No known key found for this signature in database
GPG Key ID: B0986C85C0E2DAA1
7 changed files with 5 additions and 7 deletions

View File

@ -33,7 +33,6 @@ pub mod util {
pub mod comments; pub mod comments;
pub mod lev_distance; pub mod lev_distance;
pub mod literal; pub mod literal;
pub mod map_in_place;
pub mod parser; pub mod parser;
} }

View File

@ -11,8 +11,8 @@
use crate::ptr::P; use crate::ptr::P;
use crate::token::{self, Token}; use crate::token::{self, Token};
use crate::tokenstream::*; use crate::tokenstream::*;
use crate::util::map_in_place::MapInPlace;
use rustc_data_structures::map_in_place::MapInPlace;
use rustc_data_structures::sync::Lrc; use rustc_data_structures::sync::Lrc;
use rustc_span::source_map::{respan, Spanned}; use rustc_span::source_map::{respan, Spanned};
use rustc_span::Span; use rustc_span::Span;

View File

@ -184,8 +184,8 @@
use rustc_ast::ast::{self, BinOpKind, EnumDef, Expr, Generics, Ident, PatKind}; use rustc_ast::ast::{self, BinOpKind, EnumDef, Expr, Generics, Ident, PatKind};
use rustc_ast::ast::{GenericArg, GenericParamKind, VariantData}; use rustc_ast::ast::{GenericArg, GenericParamKind, VariantData};
use rustc_ast::ptr::P; use rustc_ast::ptr::P;
use rustc_ast::util::map_in_place::MapInPlace;
use rustc_attr as attr; use rustc_attr as attr;
use rustc_data_structures::map_in_place::MapInPlace;
use rustc_expand::base::{Annotatable, ExtCtxt}; use rustc_expand::base::{Annotatable, ExtCtxt};
use rustc_session::parse::ParseSess; use rustc_session::parse::ParseSess;
use rustc_span::source_map::respan; use rustc_span::source_map::respan;

View File

@ -67,6 +67,7 @@ macro_rules! unlikely {
pub mod graph; pub mod graph;
pub mod jobserver; pub mod jobserver;
pub mod macros; pub mod macros;
pub mod map_in_place;
pub mod obligation_forest; pub mod obligation_forest;
pub mod owning_ref; pub mod owning_ref;
pub mod ptr_key; pub mod ptr_key;

View File

@ -1,5 +1,3 @@
// FIXME(Centril): Move to rustc_data_structures.
use smallvec::{Array, SmallVec}; use smallvec::{Array, SmallVec};
use std::ptr; use std::ptr;

View File

@ -4,9 +4,9 @@
use rustc_ast::attr::HasAttrs; use rustc_ast::attr::HasAttrs;
use rustc_ast::mut_visit::*; use rustc_ast::mut_visit::*;
use rustc_ast::ptr::P; use rustc_ast::ptr::P;
use rustc_ast::util::map_in_place::MapInPlace;
use rustc_attr as attr; use rustc_attr as attr;
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc_data_structures::map_in_place::MapInPlace;
use rustc_errors::{error_code, struct_span_err, Applicability, Handler}; use rustc_errors::{error_code, struct_span_err, Applicability, Handler};
use rustc_feature::{Feature, Features, State as FeatureState}; use rustc_feature::{Feature, Features, State as FeatureState};
use rustc_feature::{ use rustc_feature::{

View File

@ -13,10 +13,10 @@
use rustc_ast::ptr::P; use rustc_ast::ptr::P;
use rustc_ast::token; use rustc_ast::token;
use rustc_ast::tokenstream::TokenStream; use rustc_ast::tokenstream::TokenStream;
use rustc_ast::util::map_in_place::MapInPlace;
use rustc_ast::visit::{self, AssocCtxt, Visitor}; use rustc_ast::visit::{self, AssocCtxt, Visitor};
use rustc_ast_pretty::pprust; use rustc_ast_pretty::pprust;
use rustc_attr::{self as attr, is_builtin_attr, HasAttrs}; use rustc_attr::{self as attr, is_builtin_attr, HasAttrs};
use rustc_data_structures::map_in_place::MapInPlace;
use rustc_errors::{Applicability, PResult}; use rustc_errors::{Applicability, PResult};
use rustc_feature::Features; use rustc_feature::Features;
use rustc_parse::parser::Parser; use rustc_parse::parser::Parser;