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

Commit eba1f5b

Browse files
committed
Auto merge of rust-lang#3120 - RalfJung:rustup, r=RalfJung
Rustup
2 parents 2b0c8a7 + 35de5bb commit eba1f5b

File tree

622 files changed

+13105
-5922
lines changed

Some content is hidden

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

622 files changed

+13105
-5922
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ name: CI
2222
- try
2323
- try-perf
2424
- automation/bors/try
25-
- automation/bors/try-merge
2625
- master
2726
pull_request:
2827
branches:

Cargo.lock

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2684,6 +2684,7 @@ dependencies = [
26842684
"serde",
26852685
"serde_json",
26862686
"sysinfo",
2687+
"tabled",
26872688
"tar",
26882689
"tempfile",
26892690
"xz",
@@ -2750,6 +2751,17 @@ dependencies = [
27502751
"unwind",
27512752
]
27522753

2754+
[[package]]
2755+
name = "papergrid"
2756+
version = "0.10.0"
2757+
source = "registry+https://github.com/rust-lang/crates.io-index"
2758+
checksum = "a2ccbe15f2b6db62f9a9871642746427e297b0ceb85f9a7f1ee5ff47d184d0c8"
2759+
dependencies = [
2760+
"bytecount",
2761+
"fnv",
2762+
"unicode-width",
2763+
]
2764+
27532765
[[package]]
27542766
name = "parking_lot"
27552767
version = "0.11.2"
@@ -2958,6 +2970,30 @@ dependencies = [
29582970
"pad",
29592971
]
29602972

2973+
[[package]]
2974+
name = "proc-macro-error"
2975+
version = "1.0.4"
2976+
source = "registry+https://github.com/rust-lang/crates.io-index"
2977+
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
2978+
dependencies = [
2979+
"proc-macro-error-attr",
2980+
"proc-macro2",
2981+
"quote",
2982+
"syn 1.0.109",
2983+
"version_check",
2984+
]
2985+
2986+
[[package]]
2987+
name = "proc-macro-error-attr"
2988+
version = "1.0.4"
2989+
source = "registry+https://github.com/rust-lang/crates.io-index"
2990+
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
2991+
dependencies = [
2992+
"proc-macro2",
2993+
"quote",
2994+
"version_check",
2995+
]
2996+
29612997
[[package]]
29622998
name = "proc-macro-hack"
29632999
version = "0.5.20+deprecated"
@@ -4443,7 +4479,6 @@ dependencies = [
44434479
name = "rustc_session"
44444480
version = "0.0.0"
44454481
dependencies = [
4446-
"bitflags 1.3.2",
44474482
"getopts",
44484483
"libc",
44494484
"rustc_ast",
@@ -4468,6 +4503,7 @@ dependencies = [
44684503
name = "rustc_smir"
44694504
version = "0.0.0"
44704505
dependencies = [
4506+
"rustc_data_structures",
44714507
"rustc_driver",
44724508
"rustc_hir",
44734509
"rustc_interface",
@@ -5209,6 +5245,30 @@ dependencies = [
52095245
"test",
52105246
]
52115247

5248+
[[package]]
5249+
name = "tabled"
5250+
version = "0.13.0"
5251+
source = "registry+https://github.com/rust-lang/crates.io-index"
5252+
checksum = "4d38d39c754ae037a9bc3ca1580a985db7371cd14f1229172d1db9093feb6739"
5253+
dependencies = [
5254+
"papergrid",
5255+
"tabled_derive",
5256+
"unicode-width",
5257+
]
5258+
5259+
[[package]]
5260+
name = "tabled_derive"
5261+
version = "0.6.0"
5262+
source = "registry+https://github.com/rust-lang/crates.io-index"
5263+
checksum = "99f688a08b54f4f02f0a3c382aefdb7884d3d69609f785bd253dc033243e3fe4"
5264+
dependencies = [
5265+
"heck",
5266+
"proc-macro-error",
5267+
"proc-macro2",
5268+
"quote",
5269+
"syn 1.0.109",
5270+
]
5271+
52125272
[[package]]
52135273
name = "tar"
52145274
version = "0.4.38"

RELEASES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ Compatibility Notes
229229
this should only impact users of other registries, or people who don't publish
230230
to a registry.
231231
[#12291](https://github.com/rust-lang/cargo/pull/12291)
232+
- [Demoted `mips*-unknown-linux-gnu*` targets from host tier 2 to target tier 3 support.](https://github.com/rust-lang/rust/pull/113274)
232233

233234
Version 1.71.1 (2023-08-03)
234235
===========================

compiler/rustc_arena/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
1212
test(no_crate_inject, attr(deny(warnings)))
1313
)]
14+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
15+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
1416
#![feature(core_intrinsics)]
1517
#![feature(dropck_eyepatch)]
1618
#![feature(new_uninit)]

compiler/rustc_ast/src/attr/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ impl Attribute {
197197
.unwrap_or_else(|| panic!("attribute is missing tokens: {self:?}"))
198198
.to_attr_token_stream()
199199
.to_tokenstream(),
200-
&AttrKind::DocComment(comment_kind, data) => TokenStream::new(vec![TokenTree::Token(
201-
Token::new(token::DocComment(comment_kind, self.style, data), self.span),
202-
Spacing::Alone,
203-
)]),
200+
&AttrKind::DocComment(comment_kind, data) => TokenStream::token_alone(
201+
token::DocComment(comment_kind, self.style, data),
202+
self.span,
203+
),
204204
}
205205
}
206206
}

compiler/rustc_ast/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
99
test(attr(deny(warnings)))
1010
)]
11+
#![cfg_attr(not(bootstrap), doc(rust_logo))]
12+
#![cfg_attr(not(bootstrap), allow(internal_features))]
13+
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
1114
#![feature(associated_type_bounds)]
1215
#![feature(box_patterns)]
1316
#![feature(const_trait_impl)]

compiler/rustc_ast/src/token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ impl Token {
404404
[DotDot, DotDotDot, DotDotEq].contains(&self.kind)
405405
}
406406

407-
pub fn is_op(&self) -> bool {
407+
pub fn is_punct(&self) -> bool {
408408
match self.kind {
409409
Eq | Lt | Le | EqEq | Ne | Ge | Gt | AndAnd | OrOr | Not | Tilde | BinOp(_)
410410
| BinOpEq(_) | At | Dot | DotDot | DotDotDot | DotDotEq | Comma | Semi | Colon

compiler/rustc_ast_lowering/src/item.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,12 +1623,10 @@ impl<'hir> LoweringContext<'_, 'hir> {
16231623
.lower_generic_params(bound_generic_params, hir::GenericParamSource::Binder),
16241624
bounded_ty: self
16251625
.lower_ty(bounded_ty, &ImplTraitContext::Disallowed(ImplTraitPosition::Bound)),
1626-
bounds: self.arena.alloc_from_iter(bounds.iter().map(|bound| {
1627-
self.lower_param_bound(
1628-
bound,
1629-
&ImplTraitContext::Disallowed(ImplTraitPosition::Bound),
1630-
)
1631-
})),
1626+
bounds: self.lower_param_bounds(
1627+
bounds,
1628+
&ImplTraitContext::Disallowed(ImplTraitPosition::Bound),
1629+
),
16321630
span: self.lower_span(*span),
16331631
origin: PredicateOrigin::WhereClause,
16341632
}),

compiler/rustc_ast_pretty/src/pprust/state.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub fn print_crate<'a>(
148148

149149
/// This makes printed token streams look slightly nicer,
150150
/// and also addresses some specific regressions described in #63896 and #73345.
151-
fn tt_prepend_space(tt: &TokenTree, prev: &TokenTree) -> bool {
151+
fn space_between(prev: &TokenTree, curr: &TokenTree) -> bool {
152152
if let TokenTree::Token(token, _) = prev {
153153
// No space after these tokens, e.g. `x.y`, `$e`
154154
// (The carets point to `prev`.) ^ ^
@@ -159,9 +159,9 @@ fn tt_prepend_space(tt: &TokenTree, prev: &TokenTree) -> bool {
159159
return comment_kind != CommentKind::Line;
160160
}
161161
}
162-
match tt {
162+
match curr {
163163
// No space before these tokens, e.g. `foo,`, `println!`, `x.y`
164-
// (The carets point to `token`.) ^ ^ ^
164+
// (The carets point to `curr`.) ^ ^ ^
165165
//
166166
// FIXME: having `Not` here works well for macro invocations like
167167
// `println!()`, but is bad when `!` means "logical not" or "the never
@@ -575,7 +575,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere
575575
while let Some(tt) = iter.next() {
576576
self.print_tt(tt, convert_dollar_crate);
577577
if let Some(next) = iter.peek() {
578-
if tt_prepend_space(next, tt) {
578+
if space_between(tt, next) {
579579
self.space();
580580
}
581581
}

0 commit comments

Comments
 (0)