Skip to content

Commit a1949c5

Browse files
authored
Unrolled build for #152469
Rollup merge of #152469 - mu001999-contrib:cleanup/unused-features, r=nadrieril,jdonszelmann Remove unused features Detected by #152164. ~~Only allow `unused_features` if there are complex platform-specific features enabled.~~
2 parents a423f68 + 73c42c1 commit a1949c5

File tree

43 files changed

+45
-94
lines changed

Some content is hidden

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

43 files changed

+45
-94
lines changed

compiler/rustc_abi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// tidy-alphabetical-start
2-
#![cfg_attr(all(feature = "nightly", bootstrap), feature(assert_matches))]
2+
#![cfg_attr(all(feature = "nightly", bootstrap, test), feature(assert_matches))]
33
#![cfg_attr(feature = "nightly", allow(internal_features))]
44
#![cfg_attr(feature = "nightly", feature(rustc_attrs))]
55
#![cfg_attr(feature = "nightly", feature(step_trait))]

compiler/rustc_codegen_cranelift/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Note: please avoid adding other feature gates where possible
33
#![feature(rustc_private)]
44
// Only used to define intrinsics in `compiler_builtins.rs`.
5-
#![feature(f16)]
6-
#![feature(f128)]
5+
#![cfg_attr(feature = "jit", feature(f16))]
6+
#![cfg_attr(feature = "jit", feature(f128))]
77
// Note: please avoid adding other feature gates where possible
88
#![warn(rust_2018_idioms)]
99
#![warn(unreachable_pub)]

compiler/rustc_data_structures/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#![allow(rustc::potential_query_instability)]
1313
#![cfg_attr(bootstrap, feature(assert_matches))]
1414
#![cfg_attr(bootstrap, feature(cold_path))]
15+
#![cfg_attr(test, feature(test))]
1516
#![deny(unsafe_op_in_unsafe_fn)]
1617
#![feature(allocator_api)]
1718
#![feature(ascii_char)]
@@ -30,7 +31,6 @@
3031
#![feature(ptr_alignment_type)]
3132
#![feature(rustc_attrs)]
3233
#![feature(sized_hierarchy)]
33-
#![feature(test)]
3434
#![feature(thread_id_value)]
3535
#![feature(trusted_len)]
3636
#![feature(type_alias_impl_trait)]

compiler/rustc_errors/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#![feature(negative_impls)]
1515
#![feature(never_type)]
1616
#![feature(rustc_attrs)]
17-
#![feature(try_blocks)]
18-
#![feature(yeet_expr)]
1917
// tidy-alphabetical-end
2018

2119
extern crate self as rustc_errors;

compiler/rustc_index/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// tidy-alphabetical-start
22
#![cfg_attr(all(feature = "nightly", test), feature(stmt_expr_attributes))]
3-
#![cfg_attr(feature = "nightly", feature(extend_one, step_trait, test))]
3+
#![cfg_attr(all(feature = "nightly", test), feature(test))]
4+
#![cfg_attr(feature = "nightly", feature(extend_one, step_trait))]
45
#![cfg_attr(feature = "nightly", feature(new_range_api))]
56
// tidy-alphabetical-end
67

compiler/rustc_macros/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// tidy-alphabetical-start
22
#![allow(rustc::default_hash_types)]
3-
#![feature(if_let_guard)]
43
#![feature(never_type)]
54
#![feature(proc_macro_diagnostic)]
65
#![feature(proc_macro_tracked_env)]

compiler/rustc_metadata/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// tidy-alphabetical-start
22
#![allow(internal_features)]
3-
#![feature(decl_macro)]
43
#![feature(error_iter)]
54
#![feature(file_buffered)]
65
#![feature(gen_blocks)]

compiler/rustc_middle/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#![allow(internal_features)]
2929
#![allow(rustc::direct_use_of_rustc_type_ir)]
3030
#![cfg_attr(bootstrap, feature(assert_matches))]
31+
#![cfg_attr(doc, feature(intra_doc_pointers))]
3132
#![feature(allocator_api)]
3233
#![feature(associated_type_defaults)]
3334
#![feature(box_as_ptr)]
@@ -43,7 +44,6 @@
4344
#![feature(file_buffered)]
4445
#![feature(gen_blocks)]
4546
#![feature(if_let_guard)]
46-
#![feature(intra_doc_pointers)]
4747
#![feature(min_specialization)]
4848
#![feature(negative_impls)]
4949
#![feature(never_type)]
@@ -56,7 +56,6 @@
5656
#![feature(try_trait_v2_residual)]
5757
#![feature(try_trait_v2_yeet)]
5858
#![feature(type_alias_impl_trait)]
59-
#![feature(unwrap_infallible)]
6059
#![feature(yeet_expr)]
6160
#![recursion_limit = "256"]
6261
// tidy-alphabetical-end

compiler/rustc_parse/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
33
// tidy-alphabetical-start
44
#![cfg_attr(bootstrap, feature(assert_matches))]
5+
#![cfg_attr(test, feature(iter_order_by))]
56
#![feature(box_patterns)]
67
#![feature(debug_closure_helpers)]
78
#![feature(default_field_values)]
89
#![feature(if_let_guard)]
910
#![feature(iter_intersperse)]
10-
#![feature(iter_order_by)]
1111
#![recursion_limit = "256"]
1212
// tidy-alphabetical-end
1313

compiler/rustc_passes/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
//!
55
//! This API is completely unstable and subject to change.
66
7-
// tidy-alphabetical-start
8-
#![feature(if_let_guard)]
9-
#![feature(map_try_insert)]
10-
// tidy-alphabetical-end
11-
127
use rustc_middle::query::Providers;
138

149
pub mod abi_test;

0 commit comments

Comments
 (0)