Skip to content

Commit b65b525

Browse files
authored
Merge branch 'rust-lang:master' into search-core
2 parents a0f9b19 + f158600 commit b65b525

File tree

950 files changed

+13121
-7166
lines changed

Some content is hidden

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

950 files changed

+13121
-7166
lines changed

Cargo.lock

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70"
628628

629629
[[package]]
630630
name = "clippy"
631-
version = "0.1.80"
631+
version = "0.1.81"
632632
dependencies = [
633633
"anstream",
634634
"clippy_config",
@@ -655,7 +655,7 @@ dependencies = [
655655

656656
[[package]]
657657
name = "clippy_config"
658-
version = "0.1.80"
658+
version = "0.1.81"
659659
dependencies = [
660660
"rustc-semver",
661661
"serde",
@@ -678,7 +678,7 @@ dependencies = [
678678

679679
[[package]]
680680
name = "clippy_lints"
681-
version = "0.1.80"
681+
version = "0.1.81"
682682
dependencies = [
683683
"arrayvec",
684684
"cargo_metadata 0.18.1",
@@ -703,7 +703,7 @@ dependencies = [
703703

704704
[[package]]
705705
name = "clippy_utils"
706-
version = "0.1.80"
706+
version = "0.1.81"
707707
dependencies = [
708708
"arrayvec",
709709
"clippy_config",
@@ -1023,7 +1023,7 @@ dependencies = [
10231023

10241024
[[package]]
10251025
name = "declare_clippy_lint"
1026-
version = "0.1.80"
1026+
version = "0.1.81"
10271027
dependencies = [
10281028
"itertools 0.12.1",
10291029
"quote",
@@ -3452,7 +3452,7 @@ dependencies = [
34523452

34533453
[[package]]
34543454
name = "run_make_support"
3455-
version = "0.0.0"
3455+
version = "0.2.0"
34563456
dependencies = [
34573457
"gimli 0.28.1",
34583458
"object 0.34.0",
@@ -3627,7 +3627,6 @@ dependencies = [
36273627
"rustc_macros",
36283628
"rustc_serialize",
36293629
"rustc_span",
3630-
"smallvec",
36313630
]
36323631

36333632
[[package]]
@@ -3708,7 +3707,6 @@ dependencies = [
37083707
"icu_locid",
37093708
"icu_locid_transform",
37103709
"icu_provider",
3711-
"icu_provider_adapters",
37123710
"zerovec",
37133711
]
37143712

@@ -3889,7 +3887,6 @@ dependencies = [
38893887
"portable-atomic",
38903888
"rustc-hash",
38913889
"rustc-rayon",
3892-
"rustc-rayon-core",
38933890
"rustc_arena",
38943891
"rustc_graphviz",
38953892
"rustc_index",
@@ -3930,7 +3927,6 @@ dependencies = [
39303927
"rustc_expand",
39313928
"rustc_feature",
39323929
"rustc_fluent_macro",
3933-
"rustc_hir",
39343930
"rustc_hir_analysis",
39353931
"rustc_hir_pretty",
39363932
"rustc_hir_typeck",
@@ -4193,7 +4189,6 @@ dependencies = [
41934189
"proc-macro2",
41944190
"quote",
41954191
"syn 2.0.66",
4196-
"synstructure",
41974192
]
41984193

41994194
[[package]]
@@ -4385,7 +4380,6 @@ dependencies = [
43854380
"field-offset",
43864381
"gsgdt",
43874382
"polonius-engine",
4388-
"rustc-rayon",
43894383
"rustc-rayon-core",
43904384
"rustc_apfloat",
43914385
"rustc_arena",
@@ -4417,7 +4411,6 @@ dependencies = [
44174411
name = "rustc_mir_build"
44184412
version = "0.0.0"
44194413
dependencies = [
4420-
"either",
44214414
"itertools 0.12.1",
44224415
"rustc_apfloat",
44234416
"rustc_arena",
@@ -4436,7 +4429,6 @@ dependencies = [
44364429
"rustc_span",
44374430
"rustc_target",
44384431
"rustc_trait_selection",
4439-
"smallvec",
44404432
"tracing",
44414433
]
44424434

@@ -4511,14 +4503,7 @@ dependencies = [
45114503
name = "rustc_next_trait_solver"
45124504
version = "0.0.0"
45134505
dependencies = [
4514-
"derivative",
4515-
"rustc_ast_ir",
4516-
"rustc_data_structures",
4517-
"rustc_macros",
4518-
"rustc_serialize",
45194506
"rustc_type_ir",
4520-
"rustc_type_ir_macros",
4521-
"tracing",
45224507
]
45234508

45244509
[[package]]
@@ -4623,7 +4608,6 @@ version = "0.0.0"
46234608
dependencies = [
46244609
"field-offset",
46254610
"measureme",
4626-
"rustc-rayon-core",
46274611
"rustc_data_structures",
46284612
"rustc_errors",
46294613
"rustc_hir",
@@ -5329,7 +5313,6 @@ name = "stable_mir"
53295313
version = "0.1.0-preview"
53305314
dependencies = [
53315315
"scoped-tls",
5332-
"tracing",
53335316
]
53345317

53355318
[[package]]
@@ -5625,8 +5608,6 @@ dependencies = [
56255608
"core",
56265609
"getopts",
56275610
"libc",
5628-
"panic_abort",
5629-
"panic_unwind",
56305611
"std",
56315612
]
56325613

RELEASES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Language
147147
- [Split `refining_impl_trait` lint into `_reachable`, `_internal` variants](https://github.com/rust-lang/rust/pull/121720/)
148148
- [Remove unnecessary type inference when using associated types inside of higher ranked `where`-bounds](https://github.com/rust-lang/rust/pull/119849)
149149
- [Weaken eager detection of cyclic types during type inference](https://github.com/rust-lang/rust/pull/119989)
150-
- [`trait Trait: Auto {}`: allow upcasting from `dyn Trait` to `dyn Auto`](https://github.com/rust-lang/rust/pull/119338)
150+
- [`trait Trait: Auto {}`: allow upcasting from `dyn Trait` to `dyn Trait + Auto`](https://github.com/rust-lang/rust/pull/119338)
151151

152152
<a id="1.78.0-Compiler"></a>
153153

compiler/rustc_abi/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
#![cfg_attr(feature = "nightly", feature(step_trait))]
1+
// tidy-alphabetical-start
22
#![cfg_attr(feature = "nightly", allow(internal_features))]
33
#![cfg_attr(feature = "nightly", doc(rust_logo))]
44
#![cfg_attr(feature = "nightly", feature(rustdoc_internals))]
5+
#![cfg_attr(feature = "nightly", feature(step_trait))]
6+
// tidy-alphabetical-end
57

68
use std::fmt;
79
use std::num::{NonZeroUsize, ParseIntError};

compiler/rustc_arena/src/lib.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,25 @@
77
//!
88
//! This crate implements several kinds of arena.
99
10+
// tidy-alphabetical-start
11+
#![allow(clippy::mut_from_ref)] // Arena allocators are one place where this pattern is fine.
12+
#![allow(internal_features)]
13+
#![cfg_attr(test, feature(test))]
14+
#![deny(unsafe_op_in_unsafe_fn)]
1015
#![doc(
1116
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
1217
test(no_crate_inject, attr(deny(warnings)))
1318
)]
1419
#![doc(rust_logo)]
15-
#![feature(rustdoc_internals)]
1620
#![feature(core_intrinsics)]
21+
#![feature(decl_macro)]
1722
#![feature(dropck_eyepatch)]
18-
#![feature(new_uninit)]
1923
#![feature(maybe_uninit_slice)]
20-
#![feature(decl_macro)]
24+
#![feature(new_uninit)]
2125
#![feature(rustc_attrs)]
22-
#![cfg_attr(test, feature(test))]
26+
#![feature(rustdoc_internals)]
2327
#![feature(strict_provenance)]
24-
#![deny(unsafe_op_in_unsafe_fn)]
25-
#![allow(internal_features)]
26-
#![allow(clippy::mut_from_ref)] // Arena allocators are one of the places where this pattern is fine.
28+
// tidy-alphabetical-end
2729

2830
use smallvec::SmallVec;
2931

compiler/rustc_ast/src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@
44
//!
55
//! This API is completely unstable and subject to change.
66
7+
// tidy-alphabetical-start
8+
#![allow(internal_features)]
79
#![doc(
810
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
911
test(attr(deny(warnings)))
1012
)]
1113
#![doc(rust_logo)]
12-
#![allow(internal_features)]
13-
#![feature(rustdoc_internals)]
1414
#![feature(associated_type_defaults)]
1515
#![feature(box_patterns)]
1616
#![feature(if_let_guard)]
1717
#![feature(let_chains)]
18-
#![feature(never_type)]
1918
#![feature(negative_impls)]
19+
#![feature(never_type)]
20+
#![feature(rustdoc_internals)]
2021
#![feature(stmt_expr_attributes)]
22+
// tidy-alphabetical-end
2123

2224
pub mod util {
2325
pub mod case;

compiler/rustc_ast_ir/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ rustc_data_structures = { path = "../rustc_data_structures", optional = true }
99
rustc_macros = { path = "../rustc_macros", optional = true }
1010
rustc_serialize = { path = "../rustc_serialize", optional = true }
1111
rustc_span = { path = "../rustc_span", optional = true }
12-
smallvec = { version = "1.8.1" }
1312
# tidy-alphabetical-end
1413

1514
[features]

compiler/rustc_ast_ir/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
// tidy-alphabetical-start
2+
#![cfg_attr(feature = "nightly", allow(internal_features))]
13
#![cfg_attr(feature = "nightly", feature(never_type))]
24
#![cfg_attr(feature = "nightly", feature(rustc_attrs))]
3-
#![cfg_attr(feature = "nightly", allow(internal_features))]
5+
// tidy-alphabetical-end
46

57
#[cfg(feature = "nightly")]
68
use rustc_macros::{Decodable, Encodable, HashStable_NoContext};

compiler/rustc_ast_lowering/src/delegation.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ impl<'hir> LoweringContext<'_, 'hir> {
6767
return false;
6868
};
6969
if let Some(local_sig_id) = sig_id.as_local() {
70-
self.resolver.delegation_fn_sigs[&local_sig_id].has_self
70+
// The value may be missing due to recursive delegation.
71+
// Error will be emmited later during HIR ty lowering.
72+
self.resolver.delegation_fn_sigs.get(&local_sig_id).map_or(false, |sig| sig.has_self)
7173
} else {
7274
match self.tcx.def_kind(sig_id) {
7375
DefKind::Fn => false,

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@
3030
//! get confused if the spans from leaf AST nodes occur in multiple places
3131
//! in the HIR, especially for multiple identifiers.
3232
33+
// tidy-alphabetical-start
3334
#![allow(internal_features)]
34-
#![feature(rustdoc_internals)]
3535
#![doc(rust_logo)]
3636
#![feature(assert_matches)]
3737
#![feature(box_patterns)]
3838
#![feature(let_chains)]
39+
#![feature(rustdoc_internals)]
40+
// tidy-alphabetical-end
3941

4042
use crate::errors::{AssocTyParentheses, AssocTyParenthesesSub, MisplacedImplTrait};
4143
use rustc_ast::node_id::NodeMap;

compiler/rustc_ast_passes/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
//!
55
//! The crate also contains other misc AST visitors, e.g. `node_count` and `show_span`.
66
7+
// tidy-alphabetical-start
78
#![allow(internal_features)]
89
#![doc(rust_logo)]
9-
#![feature(rustdoc_internals)]
1010
#![feature(box_patterns)]
1111
#![feature(if_let_guard)]
1212
#![feature(iter_is_partitioned)]
1313
#![feature(let_chains)]
14+
#![feature(rustdoc_internals)]
15+
// tidy-alphabetical-end
1416

1517
pub mod ast_validation;
1618
mod errors;

0 commit comments

Comments
 (0)