Skip to content

Commit 118b505

Browse files
committed
Auto merge of #72927 - petrochenkov:rustc, r=Mark-Simulacrum
Rename all remaining compiler crates to use the `rustc_foo` pattern libarena -> librustc_arena libfmt_macros -> librustc_parse_format libgraphviz -> librustc_graphviz libserialize -> librustc_serialize Closes #71177 in particular.
2 parents 826cb06 + e793b46 commit 118b505

File tree

91 files changed

+178
-185
lines changed

Some content is hidden

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

91 files changed

+178
-185
lines changed

Cargo.lock

Lines changed: 62 additions & 62 deletions
Large diffs are not rendered by default.

src/libarena/Cargo.toml renamed to src/librustc_arena/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
authors = ["The Rust Project Developers"]
3-
name = "arena"
3+
name = "rustc_arena"
44
version = "0.0.0"
55
edition = "2018"
66

77
[lib]
8-
name = "arena"
8+
name = "rustc_arena"
99
path = "lib.rs"
1010

1111
[dependencies]
File renamed without changes.
File renamed without changes.

src/librustc_ast/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ path = "lib.rs"
1010
doctest = false
1111

1212
[dependencies]
13-
rustc_serialize = { path = "../libserialize", package = "serialize" }
13+
rustc_serialize = { path = "../librustc_serialize" }
1414
log = "0.4"
1515
scoped-tls = "1.0"
1616
rustc_span = { path = "../librustc_span" }

src/librustc_ast_lowering/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ path = "lib.rs"
1010
doctest = false
1111

1212
[dependencies]
13-
arena = { path = "../libarena" }
13+
rustc_arena = { path = "../librustc_arena" }
1414
log = { version = "0.4", features = ["release_max_level_info", "std"] }
1515
rustc_ast_pretty = { path = "../librustc_ast_pretty" }
1616
rustc_hir = { path = "../librustc_hir" }

src/librustc_ast_lowering/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ mod path;
8585

8686
const HIR_ID_COUNTER_LOCKED: u32 = 0xFFFFFFFF;
8787

88-
rustc_hir::arena_types!(::arena::declare_arena, [], 'tcx);
88+
rustc_hir::arena_types!(rustc_arena::declare_arena, [], 'tcx);
8989

9090
struct LoweringContext<'a, 'hir: 'a> {
9191
crate_root: Option<Symbol>,

src/librustc_attr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ doctest = false
1212

1313
[dependencies]
1414
rustc_ast_pretty = { path = "../librustc_ast_pretty" }
15-
rustc_serialize = { path = "../libserialize", package = "serialize" }
15+
rustc_serialize = { path = "../librustc_serialize" }
1616
rustc_errors = { path = "../librustc_errors" }
1717
rustc_span = { path = "../librustc_span" }
1818
rustc_data_structures = { path = "../librustc_data_structures" }

src/librustc_builtin_macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ path = "lib.rs"
1010
doctest = false
1111

1212
[dependencies]
13-
fmt_macros = { path = "../libfmt_macros" }
13+
rustc_parse_format = { path = "../librustc_parse_format" }
1414
log = "0.4"
1515
rustc_ast_pretty = { path = "../librustc_ast_pretty" }
1616
rustc_attr = { path = "../librustc_attr" }

src/librustc_builtin_macros/asm.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use fmt_macros as parse;
2-
31
use rustc_ast::ast;
42
use rustc_ast::ptr::P;
53
use rustc_ast::token;
@@ -8,6 +6,7 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet};
86
use rustc_errors::{Applicability, DiagnosticBuilder};
97
use rustc_expand::base::{self, *};
108
use rustc_parse::parser::Parser;
9+
use rustc_parse_format as parse;
1110
use rustc_span::symbol::{kw, sym, Symbol};
1211
use rustc_span::{InnerSpan, Span};
1312

0 commit comments

Comments
 (0)