Skip to content

Commit db65574

Browse files
committed
Sort rustc_middle attributes.
As is already done in several other crates, such as `rustc_errors`.
1 parent e2d7e71 commit db65574

File tree

1 file changed

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

1 file changed

+23
-21
lines changed

compiler/rustc_middle/src/lib.rs

+23-21
Original file line numberDiff line numberDiff line change
@@ -22,46 +22,48 @@
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(intra_doc_features)]
4149
#![feature(iter_from_coroutine)]
50+
#![feature(let_chains)]
51+
#![feature(macro_metavar_expr)]
52+
#![feature(min_exhaustive_patterns)]
53+
#![feature(min_specialization)]
4254
#![feature(negative_impls)]
4355
#![feature(never_type)]
44-
#![feature(extern_types)]
4556
#![feature(new_uninit)]
46-
#![feature(let_chains)]
47-
#![feature(min_specialization)]
48-
#![feature(trusted_len)]
49-
#![feature(type_alias_impl_trait)]
50-
#![feature(strict_provenance)]
51-
#![cfg_attr(bootstrap, feature(associated_type_bounds))]
57+
#![feature(ptr_alignment_type)]
5258
#![feature(rustc_attrs)]
59+
#![feature(rustdoc_internals)]
60+
#![feature(strict_provenance)]
5361
#![feature(trait_upcasting)]
62+
#![feature(trusted_len)]
5463
#![feature(try_blocks)]
55-
#![feature(decl_macro)]
56-
#![feature(extract_if)]
64+
#![feature(type_alias_impl_trait)]
5765
#![feature(yeet_expr)]
58-
#![feature(const_option)]
59-
#![feature(ptr_alignment_type)]
60-
#![feature(macro_metavar_expr)]
61-
#![allow(internal_features)]
62-
#![allow(rustc::potential_query_instability)]
63-
#![allow(rustc::diagnostic_outside_of_impl)]
64-
#![allow(rustc::untranslatable_diagnostic)]
66+
// tidy-alphabetical-end
6567

6668
#[macro_use]
6769
extern crate tracing;

0 commit comments

Comments
 (0)