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

Commit 4afa3a8

Browse files
committed
Auto merge of rust-lang#85984 - JohnTitor:rollup-rq0g9ph, r=JohnTitor
Rollup of 8 pull requests Successful merges: - rust-lang#85717 (Document `From` impls for cow.rs) - rust-lang#85850 (Remove unused feature gates) - rust-lang#85888 (Fix typo in internal documentation for `TrustedRandomAccess`) - rust-lang#85889 (Restoring the `num_def_ids` function in the CStore API ) - rust-lang#85899 (jsondocck small cleanup) - rust-lang#85937 (Fix bad suggestions for code from proc_macro) - rust-lang#85963 (Show `::{{constructor}}` in std::any::type_name().) - rust-lang#85977 (Fix linkcheck script from getting out of sync.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents 1c82bb2 + edb8f65 commit 4afa3a8

File tree

38 files changed

+161
-120
lines changed

38 files changed

+161
-120
lines changed

Cargo.lock

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,11 +1749,10 @@ dependencies = [
17491749
"fs-err",
17501750
"getopts",
17511751
"jsonpath_lib",
1752-
"lazy_static",
1752+
"once_cell",
17531753
"regex",
1754-
"serde",
17551754
"serde_json",
1756-
"shlex 0.1.1",
1755+
"shlex",
17571756
]
17581757

17591758
[[package]]
@@ -2134,7 +2133,7 @@ dependencies = [
21342133
"serde",
21352134
"serde_derive",
21362135
"serde_json",
2137-
"shlex 1.0.0",
2136+
"shlex",
21382137
"tempfile",
21392138
"toml",
21402139
]
@@ -4809,12 +4808,6 @@ version = "0.1.5"
48094808
source = "registry+https://github.com/rust-lang/crates.io-index"
48104809
checksum = "45bb67a18fa91266cc7807181f62f9178a6873bfad7dc788c42e6430db40184f"
48114810

4812-
[[package]]
4813-
name = "shlex"
4814-
version = "0.1.1"
4815-
source = "registry+https://github.com/rust-lang/crates.io-index"
4816-
checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2"
4817-
48184811
[[package]]
48194812
name = "shlex"
48204813
version = "1.0.0"

compiler/rustc_ast/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
#![feature(box_patterns)]
1313
#![cfg_attr(bootstrap, feature(const_fn_unsize))]
1414
#![feature(const_fn_transmute)]
15-
#![feature(const_panic)]
1615
#![feature(crate_visibility_modifier)]
1716
#![feature(iter_zip)]
1817
#![feature(label_break_value)]
1918
#![feature(nll)]
2019
#![feature(min_specialization)]
21-
#![feature(trusted_step)]
2220
#![recursion_limit = "256"]
2321

2422
#[macro_use]

compiler/rustc_ast_passes/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
77
#![feature(bindings_after_at)]
88
#![feature(iter_is_partitioned)]
9-
#![feature(box_syntax)]
109
#![feature(box_patterns)]
1110
#![recursion_limit = "256"]
1211

compiler/rustc_codegen_ssa/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2-
#![feature(assert_matches)]
32
#![feature(bool_to_option)]
43
#![feature(box_patterns)]
5-
#![feature(drain_filter)]
64
#![feature(try_blocks)]
75
#![feature(in_band_lifetimes)]
86
#![feature(nll)]
97
#![feature(associated_type_bounds)]
10-
#![feature(iter_zip)]
118
#![recursion_limit = "256"]
12-
#![feature(box_syntax)]
139

1410
//! This crate contains codegen code that is used by all codegen backends (LLVM and others).
1511
//! The backend-agnostic functions of this crate use functions defined in various traits that

compiler/rustc_data_structures/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,12 @@
1010
#![feature(array_windows)]
1111
#![feature(control_flow_enum)]
1212
#![feature(in_band_lifetimes)]
13-
#![feature(unboxed_closures)]
1413
#![feature(generator_trait)]
15-
#![feature(fn_traits)]
1614
#![feature(min_specialization)]
1715
#![feature(auto_traits)]
1816
#![feature(nll)]
1917
#![feature(allow_internal_unstable)]
2018
#![feature(hash_raw_entry)]
21-
#![feature(stmt_expr_attributes)]
2219
#![feature(core_intrinsics)]
2320
#![feature(test)]
2421
#![feature(associated_type_bounds)]

compiler/rustc_data_structures/src/obligation_forest/mod.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ impl<O: ForestObligation> ObligationForest<O> {
597597
Some(rpos) => {
598598
// Cycle detected.
599599
processor.process_backedge(
600-
stack[rpos..].iter().map(GetObligation(&self.nodes)),
600+
stack[rpos..].iter().map(|&i| &self.nodes[i].obligation),
601601
PhantomData,
602602
);
603603
}
@@ -705,20 +705,3 @@ impl<O: ForestObligation> ObligationForest<O> {
705705
});
706706
}
707707
}
708-
709-
// I need a Clone closure.
710-
#[derive(Clone)]
711-
struct GetObligation<'a, O>(&'a [Node<O>]);
712-
713-
impl<'a, 'b, O> FnOnce<(&'b usize,)> for GetObligation<'a, O> {
714-
type Output = &'a O;
715-
extern "rust-call" fn call_once(self, args: (&'b usize,)) -> &'a O {
716-
&self.0[*args.0].obligation
717-
}
718-
}
719-
720-
impl<'a, 'b, O> FnMut<(&'b usize,)> for GetObligation<'a, O> {
721-
extern "rust-call" fn call_mut(&mut self, args: (&'b usize,)) -> &'a O {
722-
&self.0[*args.0].obligation
723-
}
724-
}

compiler/rustc_expand/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(bool_to_option)]
21
#![feature(crate_visibility_modifier)]
32
#![feature(decl_macro)]
43
#![feature(destructuring_assignment)]

compiler/rustc_hir/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/hir.html
44
55
#![feature(crate_visibility_modifier)]
6-
#![feature(const_panic)]
76
#![cfg_attr(bootstrap, feature(extended_key_value_attributes))]
87
#![feature(in_band_lifetimes)]
98
#![feature(once_cell)]
109
#![feature(min_specialization)]
11-
#![feature(trusted_step)]
1210
#![recursion_limit = "256"]
1311

1412
#[macro_use]

compiler/rustc_index/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
#![feature(allow_internal_unstable)]
22
#![feature(bench_black_box)]
3-
#![feature(const_panic)]
43
#![feature(extend_one)]
54
#![feature(iter_zip)]
65
#![feature(unboxed_closures)]
76
#![feature(test)]
87
#![feature(fn_traits)]
9-
#![feature(trusted_step)]
108

119
pub mod bit_set;
1210
pub mod vec;

compiler/rustc_index/src/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl Idx for u32 {
6565
/// `u32::MAX`. You can also customize things like the `Debug` impl,
6666
/// what traits are derived, and so forth via the macro.
6767
#[macro_export]
68-
#[allow_internal_unstable(step_trait, rustc_attrs)]
68+
#[allow_internal_unstable(step_trait, rustc_attrs, trusted_step)]
6969
macro_rules! newtype_index {
7070
// ---- public rules ----
7171

0 commit comments

Comments
 (0)