Skip to content

Commit bad3bf6

Browse files
committed
Auto merge of #72041 - RalfJung:rollup-xivrvy2, r=RalfJung
Rollup of 5 pull requests Successful merges: - #69406 (upgrade chalk and use chalk-solve/chalk-ir/chalk-rust-ir) - #71185 (Move tests from `test/run-fail` to UI) - #71234 (rustllvm: Use .init_array rather than .ctors) - #71508 (Simplify the `tcx.alloc_map` API) - #71555 (Remove ast::{Ident, Name} reexports.) Failed merges: r? @ghost
2 parents 7c59a81 + 366c178 commit bad3bf6

File tree

380 files changed

+4111
-874
lines changed

Some content is hidden

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

380 files changed

+4111
-874
lines changed

Cargo.lock

+98-1
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,77 @@ dependencies = [
429429
"rustc-std-workspace-core",
430430
]
431431

432+
[[package]]
433+
name = "chalk-derive"
434+
version = "0.10.0"
435+
source = "registry+https://github.com/rust-lang/crates.io-index"
436+
checksum = "8d4620afad4d4d9e63f915cfa10c930b7a3c9c3ca5cd88dd771ff8e5bf04ea10"
437+
dependencies = [
438+
"proc-macro2 1.0.3",
439+
"quote 1.0.2",
440+
"syn 1.0.11",
441+
"synstructure 0.12.1",
442+
]
443+
444+
[[package]]
445+
name = "chalk-engine"
446+
version = "0.10.0"
447+
source = "registry+https://github.com/rust-lang/crates.io-index"
448+
checksum = "6ca6e5cef10197789da0b4ec310eda58da4c55530613b2323432642a97372735"
449+
dependencies = [
450+
"chalk-macros",
451+
"rustc-hash",
452+
]
453+
454+
[[package]]
455+
name = "chalk-ir"
456+
version = "0.10.0"
457+
source = "registry+https://github.com/rust-lang/crates.io-index"
458+
checksum = "d45df5fb6328527f976e8a32c9e1c9970084d937ebe93d0d34f5bbf4231cb956"
459+
dependencies = [
460+
"chalk-derive",
461+
"chalk-engine",
462+
"chalk-macros",
463+
]
464+
465+
[[package]]
466+
name = "chalk-macros"
467+
version = "0.10.0"
468+
source = "registry+https://github.com/rust-lang/crates.io-index"
469+
checksum = "9e4782d108e420a1fcf94d8a919cf248db33c5071678e87d9c2d4f20ed1feb32"
470+
dependencies = [
471+
"lazy_static 1.4.0",
472+
]
473+
474+
[[package]]
475+
name = "chalk-rust-ir"
476+
version = "0.10.0"
477+
source = "registry+https://github.com/rust-lang/crates.io-index"
478+
checksum = "a0ec96dbe0ab5fdbadfca4179ec2e1d35f0439c3b53a74988b1aec239c63eb08"
479+
dependencies = [
480+
"chalk-derive",
481+
"chalk-engine",
482+
"chalk-ir",
483+
"chalk-macros",
484+
]
485+
486+
[[package]]
487+
name = "chalk-solve"
488+
version = "0.10.0"
489+
source = "registry+https://github.com/rust-lang/crates.io-index"
490+
checksum = "dfb99fa9530f0e101475fb60adc931f51bdea05b4642a48928b814d7f0141a6b"
491+
dependencies = [
492+
"chalk-derive",
493+
"chalk-engine",
494+
"chalk-ir",
495+
"chalk-macros",
496+
"chalk-rust-ir",
497+
"ena 0.13.1",
498+
"itertools 0.9.0",
499+
"petgraph",
500+
"rustc-hash",
501+
]
502+
432503
[[package]]
433504
name = "chrono"
434505
version = "0.4.6"
@@ -1102,6 +1173,12 @@ dependencies = [
11021173
"winapi 0.3.8",
11031174
]
11041175

1176+
[[package]]
1177+
name = "fixedbitset"
1178+
version = "0.1.9"
1179+
source = "registry+https://github.com/rust-lang/crates.io-index"
1180+
checksum = "86d4de0081402f5e88cdac65c8dcdcc73118c1a7a465e2a05f0da05843a8ea33"
1181+
11051182
[[package]]
11061183
name = "flate2"
11071184
version = "1.0.12"
@@ -2328,6 +2405,12 @@ dependencies = [
23282405
"vcpkg",
23292406
]
23302407

2408+
[[package]]
2409+
name = "ordermap"
2410+
version = "0.3.5"
2411+
source = "registry+https://github.com/rust-lang/crates.io-index"
2412+
checksum = "a86ed3f5f244b372d6b1a00b72ef7f8876d0bc6a78a4c9985c53614041512063"
2413+
23312414
[[package]]
23322415
name = "ordslice"
23332416
version = "0.3.0"
@@ -2496,6 +2579,16 @@ dependencies = [
24962579
"sha-1",
24972580
]
24982581

2582+
[[package]]
2583+
name = "petgraph"
2584+
version = "0.4.13"
2585+
source = "registry+https://github.com/rust-lang/crates.io-index"
2586+
checksum = "9c3659d1ee90221741f65dd128d9998311b0e40c5d3c23a62445938214abce4f"
2587+
dependencies = [
2588+
"fixedbitset",
2589+
"ordermap",
2590+
]
2591+
24992592
[[package]]
25002593
name = "phf"
25012594
version = "0.7.24"
@@ -4002,6 +4095,7 @@ dependencies = [
40024095
"arena",
40034096
"bitflags",
40044097
"byteorder",
4098+
"chalk-ir",
40054099
"log",
40064100
"measureme",
40074101
"polonius-engine",
@@ -4132,7 +4226,6 @@ name = "rustc_privacy"
41324226
version = "0.0.0"
41334227
dependencies = [
41344228
"log",
4135-
"rustc_ast",
41364229
"rustc_attr",
41374230
"rustc_data_structures",
41384231
"rustc_errors",
@@ -4301,10 +4394,14 @@ dependencies = [
43014394
name = "rustc_traits"
43024395
version = "0.0.0"
43034396
dependencies = [
4397+
"chalk-ir",
4398+
"chalk-rust-ir",
4399+
"chalk-solve",
43044400
"log",
43054401
"rustc_ast",
43064402
"rustc_data_structures",
43074403
"rustc_hir",
4404+
"rustc_index",
43084405
"rustc_infer",
43094406
"rustc_middle",
43104407
"rustc_span",

src/bootstrap/builder.rs

-2
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ impl<'a> Builder<'a> {
359359
test::Tidy,
360360
test::Ui,
361361
test::CompileFail,
362-
test::RunFail,
363362
test::RunPassValgrind,
364363
test::MirOpt,
365364
test::Codegen,
@@ -370,7 +369,6 @@ impl<'a> Builder<'a> {
370369
test::UiFullDeps,
371370
test::Rustdoc,
372371
test::Pretty,
373-
test::RunFailPretty,
374372
test::RunPassValgrindPretty,
375373
test::Crate,
376374
test::CrateLibrustc,

src/bootstrap/mk/Makefile.in

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ check:
4848
$(Q)$(BOOTSTRAP) test $(BOOTSTRAP_ARGS)
4949
check-aux:
5050
$(Q)$(BOOTSTRAP) test \
51-
src/test/run-fail/pretty \
5251
src/test/run-pass-valgrind/pretty \
5352
$(AUX_ARGS) \
5453
$(BOOTSTRAP_ARGS)

src/bootstrap/test.rs

-9
Original file line numberDiff line numberDiff line change
@@ -898,8 +898,6 @@ default_test!(CompileFail {
898898
suite: "compile-fail"
899899
});
900900

901-
default_test!(RunFail { path: "src/test/run-fail", mode: "run-fail", suite: "run-fail" });
902-
903901
default_test!(RunPassValgrind {
904902
path: "src/test/run-pass-valgrind",
905903
mode: "run-pass-valgrind",
@@ -929,13 +927,6 @@ host_test!(UiFullDeps { path: "src/test/ui-fulldeps", mode: "ui", suite: "ui-ful
929927
host_test!(Rustdoc { path: "src/test/rustdoc", mode: "rustdoc", suite: "rustdoc" });
930928

931929
host_test!(Pretty { path: "src/test/pretty", mode: "pretty", suite: "pretty" });
932-
test!(RunFailPretty {
933-
path: "src/test/run-fail/pretty",
934-
mode: "pretty",
935-
suite: "run-fail",
936-
default: false,
937-
host: true
938-
});
939930
test!(RunPassValgrindPretty {
940931
path: "src/test/run-pass-valgrind/pretty",
941932
mode: "pretty",

src/librustc_ast/ast.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ pub use crate::util::parser::ExprPrecedence;
2222
pub use GenericArgs::*;
2323
pub use UnsafeSource::*;
2424

25-
pub use rustc_span::symbol::{Ident, Symbol as Name};
26-
2725
use crate::ptr::P;
2826
use crate::token::{self, DelimToken};
2927
use crate::tokenstream::{DelimSpan, TokenStream, TokenTree};
@@ -34,7 +32,7 @@ use rustc_data_structures::thin_vec::ThinVec;
3432
use rustc_macros::HashStable_Generic;
3533
use rustc_serialize::{self, Decoder, Encoder};
3634
use rustc_span::source_map::{respan, Spanned};
37-
use rustc_span::symbol::{kw, sym, Symbol};
35+
use rustc_span::symbol::{kw, sym, Ident, Symbol};
3836
use rustc_span::{Span, DUMMY_SP};
3937

4038
use std::convert::TryFrom;
@@ -2451,7 +2449,7 @@ pub enum ItemKind {
24512449
/// An `extern crate` item, with the optional *original* crate name if the crate was renamed.
24522450
///
24532451
/// E.g., `extern crate foo` or `extern crate foo_bar as foo`.
2454-
ExternCrate(Option<Name>),
2452+
ExternCrate(Option<Symbol>),
24552453
/// A use declaration item (`use`).
24562454
///
24572455
/// E.g., `use foo;`, `use foo::bar;` or `use foo::bar as FooBar;`.

src/librustc_ast/attr/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
use crate::ast;
44
use crate::ast::{AttrId, AttrItem, AttrKind, AttrStyle, AttrVec, Attribute};
55
use crate::ast::{Expr, GenericParam, Item, Lit, LitKind, Local, Stmt, StmtKind};
6-
use crate::ast::{Ident, Name, Path, PathSegment};
76
use crate::ast::{MacArgs, MacDelimiter, MetaItem, MetaItemKind, NestedMetaItem};
7+
use crate::ast::{Path, PathSegment};
88
use crate::mut_visit::visit_clobber;
99
use crate::ptr::P;
1010
use crate::token::{self, Token};
@@ -14,7 +14,7 @@ use rustc_data_structures::sync::Lock;
1414
use rustc_index::bit_set::GrowableBitSet;
1515
use rustc_span::edition::{Edition, DEFAULT_EDITION};
1616
use rustc_span::source_map::{BytePos, Spanned};
17-
use rustc_span::symbol::{sym, Symbol};
17+
use rustc_span::symbol::{sym, Ident, Symbol};
1818
use rustc_span::Span;
1919

2020
use log::debug;
@@ -113,7 +113,7 @@ impl NestedMetaItem {
113113
}
114114

115115
/// Returns a name and single literal value tuple of the `MetaItem`.
116-
pub fn name_value_literal(&self) -> Option<(Name, &Lit)> {
116+
pub fn name_value_literal(&self) -> Option<(Symbol, &Lit)> {
117117
self.meta_item().and_then(|meta_item| {
118118
meta_item.meta_item_list().and_then(|meta_item_list| {
119119
if meta_item_list.len() == 1 {

src/librustc_ast/mut_visit.rs

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use crate::tokenstream::*;
1515
use rustc_data_structures::map_in_place::MapInPlace;
1616
use rustc_data_structures::sync::Lrc;
1717
use rustc_span::source_map::{respan, Spanned};
18+
use rustc_span::symbol::Ident;
1819
use rustc_span::Span;
1920

2021
use smallvec::{smallvec, Array, SmallVec};

0 commit comments

Comments
 (0)