Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1dcd4c8

Browse files
committedApr 30, 2024·
Sort rustc_middle attributes.
As is already done in several other crates, such as `rustc_errors`.
1 parent b1291ca commit 1dcd4c8

File tree

1 file changed

+23
-21
lines changed
  • compiler/rustc_middle/src

1 file changed

+23
-21
lines changed
 

Diff for: ‎compiler/rustc_middle/src/lib.rs

+23-21
Original file line numberDiff line numberDiff line change
@@ -22,45 +22,47 @@
2222
//!
2323
//! This API is completely unstable and subject to change.
2424
25+
// tidy-alphabetical-start
26+
#![allow(internal_features)]
27+
#![allow(rustc::diagnostic_outside_of_impl)]
28+
#![allow(rustc::potential_query_instability)]
29+
#![allow(rustc::untranslatable_diagnostic)]
30+
#![cfg_attr(bootstrap, feature(associated_type_bounds))]
31+
#![cfg_attr(bootstrap, feature(inline_const))]
2532
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2633
#![doc(rust_logo)]
27-
#![feature(min_exhaustive_patterns)]
28-
#![feature(rustdoc_internals)]
2934
#![feature(allocator_api)]
3035
#![feature(array_windows)]
3136
#![feature(assert_matches)]
3237
#![feature(box_patterns)]
3338
#![feature(closure_track_caller)]
34-
#![feature(core_intrinsics)]
39+
#![feature(const_option)]
3540
#![feature(const_type_name)]
36-
#![feature(discriminant_kind)]
41+
#![feature(core_intrinsics)]
3742
#![feature(coroutines)]
43+
#![feature(decl_macro)]
44+
#![feature(discriminant_kind)]
45+
#![feature(extern_types)]
46+
#![feature(extract_if)]
3847
#![feature(if_let_guard)]
39-
#![cfg_attr(bootstrap, feature(inline_const))]
4048
#![feature(iter_from_coroutine)]
49+
#![feature(let_chains)]
50+
#![feature(macro_metavar_expr)]
51+
#![feature(min_exhaustive_patterns)]
52+
#![feature(min_specialization)]
4153
#![feature(negative_impls)]
4254
#![feature(never_type)]
43-
#![feature(extern_types)]
4455
#![feature(new_uninit)]
45-
#![feature(let_chains)]
46-
#![feature(min_specialization)]
47-
#![feature(trusted_len)]
48-
#![feature(type_alias_impl_trait)]
49-
#![feature(strict_provenance)]
50-
#![cfg_attr(bootstrap, feature(associated_type_bounds))]
56+
#![feature(ptr_alignment_type)]
5157
#![feature(rustc_attrs)]
58+
#![feature(rustdoc_internals)]
59+
#![feature(strict_provenance)]
5260
#![feature(trait_upcasting)]
61+
#![feature(trusted_len)]
5362
#![feature(try_blocks)]
54-
#![feature(decl_macro)]
55-
#![feature(extract_if)]
63+
#![feature(type_alias_impl_trait)]
5664
#![feature(yeet_expr)]
57-
#![feature(const_option)]
58-
#![feature(ptr_alignment_type)]
59-
#![feature(macro_metavar_expr)]
60-
#![allow(internal_features)]
61-
#![allow(rustc::potential_query_instability)]
62-
#![allow(rustc::diagnostic_outside_of_impl)]
63-
#![allow(rustc::untranslatable_diagnostic)]
65+
// tidy-alphabetical-end
6466

6567
#[macro_use]
6668
extern crate tracing;

0 commit comments

Comments
 (0)
Please sign in to comment.