Skip to content

Commit 589bb91

Browse files
mejrsJonathanBrouwer
authored andcommitted
Move Limit
1 parent 0cfa1c4 commit 589bb91

48 files changed

Lines changed: 86 additions & 32 deletions

File tree

Some content is hidden

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

‎Cargo.lock‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3664,6 +3664,7 @@ dependencies = [
36643664
"rustc_macros",
36653665
"rustc_serialize",
36663666
"rustc_span",
3667+
"rustc_structures",
36673668
"rustc_target",
36683669
"smallvec",
36693670
"thin-vec",
@@ -3688,6 +3689,7 @@ dependencies = [
36883689
"rustc_parse_format",
36893690
"rustc_session",
36903691
"rustc_span",
3692+
"rustc_structures",
36913693
"rustc_target",
36923694
"thin-vec",
36933695
]
@@ -3855,6 +3857,7 @@ dependencies = [
38553857
"rustc_mir_dataflow",
38563858
"rustc_session",
38573859
"rustc_span",
3860+
"rustc_structures",
38583861
"rustc_target",
38593862
"rustc_trait_selection",
38603863
"tracing",
@@ -3973,6 +3976,7 @@ dependencies = [
39733976
"rustc_macros",
39743977
"rustc_serialize",
39753978
"rustc_span",
3979+
"rustc_structures",
39763980
"unic-langid",
39773981
]
39783982

@@ -4023,6 +4027,7 @@ dependencies = [
40234027
"rustc_serialize",
40244028
"rustc_session",
40254029
"rustc_span",
4030+
"rustc_structures",
40264031
"scoped-tls",
40274032
"smallvec",
40284033
"thin-vec",
@@ -4098,6 +4103,7 @@ dependencies = [
40984103
"rustc_middle",
40994104
"rustc_session",
41004105
"rustc_span",
4106+
"rustc_structures",
41014107
"rustc_target",
41024108
"rustc_trait_selection",
41034109
"smallvec",
@@ -4251,6 +4257,7 @@ dependencies = [
42514257
"rustc_resolve",
42524258
"rustc_session",
42534259
"rustc_span",
4260+
"rustc_structures",
42544261
"rustc_symbol_mangling",
42554262
"rustc_target",
42564263
"rustc_thread_pool",
@@ -4405,6 +4412,7 @@ dependencies = [
44054412
"rustc_serialize",
44064413
"rustc_session",
44074414
"rustc_span",
4415+
"rustc_structures",
44084416
"rustc_target",
44094417
"rustc_thread_pool",
44104418
"rustc_type_ir",
@@ -4476,6 +4484,7 @@ dependencies = [
44764484
"rustc_mir_dataflow",
44774485
"rustc_session",
44784486
"rustc_span",
4487+
"rustc_structures",
44794488
"rustc_target",
44804489
"rustc_trait_selection",
44814490
"smallvec",
@@ -4498,6 +4507,7 @@ dependencies = [
44984507
"rustc_serialize",
44994508
"rustc_session",
45004509
"rustc_span",
4510+
"rustc_structures",
45014511
"rustc_symbol_mangling",
45024512
"rustc_target",
45034513
"serde",
@@ -4663,6 +4673,7 @@ dependencies = [
46634673
"rustc_middle",
46644674
"rustc_serialize",
46654675
"rustc_span",
4676+
"rustc_structures",
46664677
"rustc_thread_pool",
46674678
"tracing",
46684679
]
@@ -4741,6 +4752,7 @@ dependencies = [
47414752
"rustc_macros",
47424753
"rustc_serialize",
47434754
"rustc_span",
4755+
"rustc_structures",
47444756
"rustc_target",
47454757
"termize",
47464758
"tracing",
@@ -4770,6 +4782,15 @@ dependencies = [
47704782
"unicode-width 0.2.2",
47714783
]
47724784

4785+
[[package]]
4786+
name = "rustc_structures"
4787+
version = "0.0.0"
4788+
dependencies = [
4789+
"rustc_data_structures",
4790+
"rustc_macros",
4791+
"rustc_serialize",
4792+
]
4793+
47734794
[[package]]
47744795
name = "rustc_symbol_mangling"
47754796
version = "0.0.0"
@@ -4849,6 +4870,7 @@ dependencies = [
48494870
"rustc_next_trait_solver",
48504871
"rustc_session",
48514872
"rustc_span",
4873+
"rustc_structures",
48524874
"rustc_transmute",
48534875
"smallvec",
48544876
"thin-vec",
@@ -4897,6 +4919,7 @@ dependencies = [
48974919
"rustc_middle",
48984920
"rustc_session",
48994921
"rustc_span",
4922+
"rustc_structures",
49004923
"rustc_target",
49014924
"rustc_trait_selection",
49024925
"rustc_ty_walk",

‎compiler/rustc_attr_ir/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ rustc_error_messages = { path = "../rustc_error_messages" }
1313
rustc_macros = { path = "../rustc_macros" }
1414
rustc_serialize = { path = "../rustc_serialize" }
1515
rustc_span = { path = "../rustc_span" }
16+
rustc_structures = { path = "../rustc_structures" }
1617
rustc_target = { path = "../rustc_target" }
1718
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
1819
thin-vec = "0.2.18"

‎compiler/rustc_attr_ir/src/data_structures.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ use rustc_ast::expand::autodiff_attrs::{DiffActivity, DiffMode};
1010
use rustc_ast::expand::typetree::TypeTree;
1111
use rustc_ast::token::DocFragmentKind;
1212
use rustc_ast::{AttrStyle, Path, ast};
13-
use rustc_data_structures::Limit;
1413
use rustc_data_structures::fx::FxIndexMap;
1514
use rustc_error_messages::{DiagArgValue, IntoDiagArg};
1615
use rustc_macros::{Decodable, Encodable, PrintAttribute, StableHash};
1716
use rustc_span::def_id::DefId;
1817
use rustc_span::hygiene::Transparency;
1918
use rustc_span::{ErrorGuaranteed, Ident, Span, Symbol};
19+
use rustc_structures::Limit;
2020
pub use rustc_target::spec::SanitizerSet;
2121
use thin_vec::ThinVec;
2222

‎compiler/rustc_attr_ir/src/pretty_printing.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ use rustc_ast::expand::autodiff_attrs::{DiffActivity, DiffMode};
1010
use rustc_ast::token::{CommentKind, DocFragmentKind};
1111
use rustc_ast::{AttrId, AttrStyle, IntTy, UintTy};
1212
use rustc_ast_pretty::pp::Printer;
13-
use rustc_data_structures::Limit;
1413
use rustc_data_structures::fx::FxIndexMap;
1514
use rustc_span::def_id::DefId;
1615
use rustc_span::hygiene::Transparency;
1716
use rustc_span::{ErrorGuaranteed, Ident, Span, Symbol};
17+
use rustc_structures::Limit;
1818
use rustc_target::spec::SanitizerSet;
1919
use thin_vec::ThinVec;
2020

‎compiler/rustc_attr_parsing/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ rustc_parse = { path = "../rustc_parse" }
1919
rustc_parse_format = { path = "../rustc_parse_format" }
2020
rustc_session = { path = "../rustc_session" }
2121
rustc_span = { path = "../rustc_span" }
22+
rustc_structures = { path = "../rustc_structures" }
2223
rustc_target = { path = "../rustc_target" }
2324
thin-vec = "0.2.19"
2425
# tidy-alphabetical-end

‎compiler/rustc_attr_parsing/src/attributes/util.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ use std::num::IntErrorKind;
22

33
use rustc_ast::{LitKind, ast};
44
use rustc_attr_ir::RustcVersion;
5-
use rustc_data_structures::Limit;
65
use rustc_feature::is_builtin_attr_name;
76
use rustc_span::Symbol;
7+
use rustc_structures::Limit;
88

99
use crate::context::AcceptContext;
1010
use crate::diagnostics::LimitInvalid;

‎compiler/rustc_const_eval/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ rustc_middle = { path = "../rustc_middle" }
2020
rustc_mir_dataflow = { path = "../rustc_mir_dataflow" }
2121
rustc_session = { path = "../rustc_session" }
2222
rustc_span = { path = "../rustc_span" }
23+
rustc_structures = { path = "../rustc_structures" }
2324
rustc_target = { path = "../rustc_target" }
2425
rustc_trait_selection = { path = "../rustc_trait_selection" }
2526
tracing = "0.1"

‎compiler/rustc_const_eval/src/interpret/eval_context.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use std::collections::hash_map::Entry;
33

44
use either::{Left, Right};
55
use rustc_abi::{Align, HasDataLayout, Size, TargetDataLayout};
6-
use rustc_data_structures::Limit;
76
use rustc_data_structures::fx::FxHashMap;
87
use rustc_hir::def_id::DefId;
98
use rustc_middle::mir::interpret::{ErrorHandled, InvalidMetaKind, ReportedErrorInfo};
@@ -17,6 +16,7 @@ use rustc_middle::ty::{
1716
};
1817
use rustc_middle::{mir, span_bug};
1918
use rustc_span::Span;
19+
use rustc_structures::Limit;
2020
use rustc_target::callconv::FnAbi;
2121
use tracing::{debug, trace};
2222

‎compiler/rustc_data_structures/src/lib.rs‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ pub use ena::{snapshot_vec, undo_log, unify};
4848
// (via `ShardedHashMap`), and because it lets other compiler crates use the
4949
// lower-level `HashTable` API without a tricky `hashbrown` dependency.
5050
pub use hashbrown::hash_table;
51-
pub use limit::Limit;
5251
pub use rustc_index::static_assert_size;
5352
// Re-export some data-structure crates which are part of our public API.
5453
pub use {either, indexmap, smallvec, thin_vec};
@@ -63,7 +62,6 @@ pub mod fx;
6362
pub mod graph;
6463
pub mod intern;
6564
pub mod jobserver;
66-
mod limit;
6765
pub mod marker;
6866
pub mod memmap;
6967
pub mod obligation_forest;

‎compiler/rustc_error_messages/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ rustc_data_structures = { path = "../rustc_data_structures" }
1414
rustc_macros = { path = "../rustc_macros" }
1515
rustc_serialize = { path = "../rustc_serialize" }
1616
rustc_span = { path = "../rustc_span" }
17+
rustc_structures = { path = "../rustc_structures" }
1718
unic-langid = { version = "0.9.0", features = ["macros"] }
1819
# tidy-alphabetical-end

0 commit comments

Comments
 (0)