Skip to content

Commit 949010d

Browse files
committed
Auto merge of #50228 - irinagpopa:backstory-v2, r=nikomatsakis
Rename rustc_back to rustc_target and move ABI code to it. Fixes #45226.
2 parents 88cd367 + a131c51 commit 949010d

File tree

251 files changed

+2267
-2086
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+2267
-2086
lines changed

src/Cargo.lock

Lines changed: 25 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/librustc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ lazy_static = "1.0.0"
1818
log = { version = "0.4", features = ["release_max_level_info", "std"] }
1919
proc_macro = { path = "../libproc_macro" }
2020
rustc_apfloat = { path = "../librustc_apfloat" }
21-
rustc_back = { path = "../librustc_back" }
21+
rustc_target = { path = "../librustc_target" }
2222
rustc_const_math = { path = "../librustc_const_math" }
2323
rustc_data_structures = { path = "../librustc_data_structures" }
2424
rustc_errors = { path = "../librustc_errors" }

src/librustc/hir/intravisit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
//! This order consistency is required in a few places in rustc, for
4242
//! example generator inference, and possibly also HIR borrowck.
4343
44-
use syntax::abi::Abi;
44+
use rustc_target::spec::abi::Abi;
4545
use syntax::ast::{NodeId, CRATE_NODE_ID, Name, Attribute};
4646
use syntax_pos::Span;
4747
use hir::*;

src/librustc/hir/map/blocks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use hir as ast;
2525
use hir::map::{self, Node};
2626
use hir::{Expr, FnDecl};
2727
use hir::intravisit::FnKind;
28-
use syntax::abi;
28+
use rustc_target::spec::abi;
2929
use syntax::ast::{Attribute, Name, NodeId};
3030
use syntax_pos::Span;
3131

src/librustc/hir/map/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use hir::def_id::{CRATE_DEF_INDEX, DefId, LocalDefId, DefIndexAddressSpace};
2121

2222
use middle::cstore::CrateStore;
2323

24-
use syntax::abi::Abi;
24+
use rustc_target::spec::abi::Abi;
2525
use syntax::ast::{self, Name, NodeId, CRATE_NODE_ID};
2626
use syntax::codemap::Spanned;
2727
use syntax::ext::base::MacroKind;

src/librustc/hir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use mir::mono::Linkage;
3434

3535
use syntax_pos::{Span, DUMMY_SP};
3636
use syntax::codemap::{self, Spanned};
37-
use syntax::abi::Abi;
37+
use rustc_target::spec::abi::Abi;
3838
use syntax::ast::{self, Name, NodeId, DUMMY_NODE_ID, AsmDialect};
3939
use syntax::ast::{Attribute, Lit, StrStyle, FloatTy, IntTy, UintTy, MetaItem};
4040
use syntax::attr::InlineAttr;

src/librustc/hir/print.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
pub use self::AnnNode::*;
1212

13-
use syntax::abi::Abi;
13+
use rustc_target::spec::abi::Abi;
1414
use syntax::ast;
1515
use syntax::codemap::{CodeMap, Spanned};
1616
use syntax::parse::{token, ParseSess};

src/librustc/ich/impls_misc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl_stable_hash_for!(enum ::session::search_paths::PathKind {
2020
All
2121
});
2222

23-
impl_stable_hash_for!(enum ::rustc_back::PanicStrategy {
23+
impl_stable_hash_for!(enum ::rustc_target::spec::PanicStrategy {
2424
Abort,
2525
Unwind
2626
});

src/librustc/ich/impls_syntax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl_stable_hash_for!(enum ::syntax::ext::base::MacroKind {
8282
});
8383

8484

85-
impl_stable_hash_for!(enum ::syntax::abi::Abi {
85+
impl_stable_hash_for!(enum ::rustc_target::spec::abi::Abi {
8686
Cdecl,
8787
Stdcall,
8888
Fastcall,

src/librustc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ extern crate graphviz;
8181
#[macro_use] extern crate lazy_static;
8282
#[cfg(windows)]
8383
extern crate libc;
84-
extern crate rustc_back;
84+
extern crate rustc_target;
8585
#[macro_use] extern crate rustc_data_structures;
8686
extern crate serialize;
8787
extern crate rustc_const_math;

0 commit comments

Comments
 (0)