Rename syntax to rustc_ast in source code
This commit is contained in:
parent
6054a30370
commit
e08c279eac
291 changed files with 650 additions and 637 deletions
|
|
@ -20,7 +20,7 @@ jobserver = "0.1.11"
|
|||
tempfile = "3.1"
|
||||
|
||||
rustc_serialize = { path = "../libserialize", package = "serialize" }
|
||||
syntax = { path = "../librustc_ast", package = "rustc_ast" }
|
||||
rustc_ast = { path = "../librustc_ast" }
|
||||
rustc_span = { path = "../librustc_span" }
|
||||
rustc = { path = "../librustc" }
|
||||
rustc_apfloat = { path = "../librustc_apfloat" }
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ use rustc::ty::query::Providers;
|
|||
use rustc::ty::subst::{GenericArgKind, SubstsRef};
|
||||
use rustc::ty::Instance;
|
||||
use rustc::ty::{SymbolName, TyCtxt};
|
||||
use rustc_ast::expand::allocator::ALLOCATOR_METHODS;
|
||||
use rustc_codegen_utils::symbol_names;
|
||||
use rustc_data_structures::fingerprint::Fingerprint;
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
|
|
@ -15,7 +16,6 @@ use rustc_hir as hir;
|
|||
use rustc_hir::def_id::{CrateNum, DefId, DefIdMap, CRATE_DEF_INDEX, LOCAL_CRATE};
|
||||
use rustc_hir::Node;
|
||||
use rustc_index::vec::IndexVec;
|
||||
use syntax::expand::allocator::ALLOCATOR_METHODS;
|
||||
|
||||
pub fn threshold(tcx: TyCtxt<'_>) -> SymbolExportLevel {
|
||||
crates_export_threshold(&tcx.sess.crate_types.borrow())
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ use rustc::session::config::{
|
|||
};
|
||||
use rustc::session::Session;
|
||||
use rustc::ty::TyCtxt;
|
||||
use rustc_ast::attr;
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_data_structures::profiling::SelfProfilerRef;
|
||||
use rustc_data_structures::profiling::TimingGuard;
|
||||
|
|
@ -37,7 +38,6 @@ use rustc_span::hygiene::ExpnId;
|
|||
use rustc_span::source_map::SourceMap;
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
use rustc_target::spec::MergeFunctions;
|
||||
use syntax::attr;
|
||||
|
||||
use std::any::Any;
|
||||
use std::fs;
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ use rustc::session::{config, Session};
|
|||
use rustc::ty::layout::{HasTyCtxt, LayoutOf, TyLayout};
|
||||
use rustc::ty::Ty;
|
||||
use rustc::ty::TyCtxt;
|
||||
use rustc_ast::expand::allocator::AllocatorKind;
|
||||
use rustc_codegen_utils::codegen_backend::CodegenBackend;
|
||||
use rustc_span::symbol::Symbol;
|
||||
use syntax::expand::allocator::AllocatorKind;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ use crate::mir::debuginfo::{FunctionDebugContext, VariableKind};
|
|||
use rustc::mir;
|
||||
use rustc::ty::layout::Size;
|
||||
use rustc::ty::{Instance, Ty};
|
||||
use rustc_ast::ast::Name;
|
||||
use rustc_hir::def_id::CrateNum;
|
||||
use rustc_span::{SourceFile, Span};
|
||||
use rustc_target::abi::call::FnAbi;
|
||||
use syntax::ast::Name;
|
||||
|
||||
pub trait DebugInfoMethods<'tcx>: BackendTypes {
|
||||
fn create_vtable_metadata(&self, ty: Ty<'tcx>, vtable: Self::Value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue