Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 283e5b4

Browse files
committed
Rename the crates in source code
1 parent 11d9514 commit 283e5b4

File tree

39 files changed

+54
-52
lines changed

39 files changed

+54
-52
lines changed

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 = "../librustc_arena", package = "rustc_arena" }
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_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 = "../librustc_parse_format", package = "rustc_parse_format" }
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

src/librustc_builtin_macros/format.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
use ArgumentType::*;
22
use Position::*;
33

4-
use fmt_macros as parse;
5-
64
use rustc_ast::ast;
75
use rustc_ast::ptr::P;
86
use rustc_ast::token;
97
use rustc_ast::tokenstream::TokenStream;
108
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
119
use rustc_errors::{pluralize, Applicability, DiagnosticBuilder};
1210
use rustc_expand::base::{self, *};
11+
use rustc_parse_format as parse;
1312
use rustc_span::symbol::{sym, Ident, Symbol};
1413
use rustc_span::{MultiSpan, Span};
1514

src/librustc_data_structures/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobserver_crate = { version = "0.1.13", package = "jobserver" }
1717
lazy_static = "1"
1818
once_cell = { version = "1", features = ["parking_lot"] }
1919
rustc_serialize = { path = "../librustc_serialize" }
20-
graphviz = { path = "../librustc_graphviz", package = "rustc_graphviz" }
20+
rustc_graphviz = { path = "../librustc_graphviz" }
2121
cfg-if = "0.1.2"
2222
crossbeam-utils = { version = "0.7", features = ["nightly"] }
2323
stable_deref_trait = "1.0.0"

src/librustc_data_structures/obligation_forest/graphviz.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::obligation_forest::{ForestObligation, ObligationForest};
2-
use graphviz as dot;
2+
use rustc_graphviz as dot;
33
use std::env::var_os;
44
use std::fs::File;
55
use std::io::BufWriter;

src/librustc_graphviz/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
//! #![feature(rustc_private)]
4141
//!
4242
//! use std::io::Write;
43-
//! use graphviz as dot;
43+
//! use rustc_graphviz as dot;
4444
//!
4545
//! type Nd = isize;
4646
//! type Ed = (isize,isize);
@@ -145,7 +145,7 @@
145145
//! #![feature(rustc_private)]
146146
//!
147147
//! use std::io::Write;
148-
//! use graphviz as dot;
148+
//! use rustc_graphviz as dot;
149149
//!
150150
//! type Nd = usize;
151151
//! type Ed<'a> = &'a (usize, usize);
@@ -207,7 +207,7 @@
207207
//! #![feature(rustc_private)]
208208
//!
209209
//! use std::io::Write;
210-
//! use graphviz as dot;
210+
//! use rustc_graphviz as dot;
211211
//!
212212
//! type Nd<'a> = (usize, &'a str);
213213
//! type Ed<'a> = (Nd<'a>, Nd<'a>);

src/librustc_incremental/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-
graphviz = { path = "../librustc_graphviz", package = "rustc_graphviz" }
13+
rustc_graphviz = { path = "../librustc_graphviz" }
1414
log = "0.4"
1515
rand = "0.7"
1616
rustc_middle = { path = "../librustc_middle" }

src/librustc_incremental/assert_dep_graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
//! fn baz() { foo(); }
3434
//! ```
3535
36-
use graphviz as dot;
3736
use rustc_ast::ast;
3837
use rustc_data_structures::fx::FxHashSet;
3938
use rustc_data_structures::graph::implementation::{Direction, NodeIndex, INCOMING, OUTGOING};
39+
use rustc_graphviz as dot;
4040
use rustc_hir as hir;
4141
use rustc_hir::def_id::DefId;
4242
use rustc_hir::intravisit::{self, NestedVisitorMap, Visitor};

0 commit comments

Comments
 (0)