rust/compiler/rustc_builtin_macros/src
Nicholas Nethercote 75b164d836 Use tidy to sort crate attributes for all compiler crates.
We already do this for a number of crates, e.g. `rustc_middle`,
`rustc_span`, `rustc_metadata`, `rustc_span`, `rustc_errors`.

For the ones we don't, in many cases the attributes are a mess.
- There is no consistency about order of attribute kinds (e.g.
  `allow`/`deny`/`feature`).
- Within attribute kind groups (e.g. the `feature` attributes),
  sometimes the order is alphabetical, and sometimes there is no
  particular order.
- Sometimes the attributes of a particular kind aren't even grouped
  all together, e.g. there might be a `feature`, then an `allow`, then
  another `feature`.

This commit extends the existing sorting to all compiler crates,
increasing consistency. If any new attribute line is added there is now
only one place it can go -- no need for arbitrary decisions.

Exceptions:
- `rustc_log`, `rustc_next_trait_solver` and `rustc_type_ir_macros`,
  because they have no crate attributes.
- `rustc_codegen_gcc`, because it's quasi-external to rustc (e.g. it's
  ignored in `rustfmt.toml`).
2024-06-12 15:49:10 +10:00
..
assert Rollup merge of #126096 - c410-f3r:tests-tests-tests, r=jhpratt 2024-06-06 14:46:25 -07:00
deriving When deriveing, account for HRTB on BareFn fields 2024-06-04 20:46:03 +00:00
format_foreign Use as_deref in compiler (but only where it makes sense) 2022-11-16 21:58:58 +00:00
alloc_error_handler.rs Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00
asm.rs Rename buffer_lint_with_diagnostic to buffer_lint 2024-05-21 20:16:39 +00:00
assert.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
cfg_accessible.rs compiler: fix few needless_pass_by_ref_mut clippy lints 2024-03-28 12:04:00 +03:00
cfg_eval.rs Remove stream_to_parser. 2024-06-05 10:37:59 +10:00
cfg.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
cmdline_attrs.rs Parse unsafe attributes 2024-06-06 20:26:27 -05:00
compile_error.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
concat_bytes.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
concat_idents.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
concat.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
derive.rs Handle safe case 2024-06-06 20:54:51 -05:00
edition_panic.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
env.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
errors.rs Disallow unsafe in derive 2024-06-06 20:26:27 -05:00
format_foreign.rs Fix println! ICE when parsing percent prefix number 2024-05-18 01:05:56 +00:00
format.rs Generate lint diagnostic message from BuiltinLintDiag 2024-05-21 20:16:39 +00:00
global_allocator.rs Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00
lib.rs Use tidy to sort crate attributes for all compiler crates. 2024-06-12 15:49:10 +10:00
log_syntax.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
pattern_type.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
proc_macro_harness.rs Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00
source_util.rs Make top-level rustc_parse functions fallible. 2024-06-05 10:38:03 +10:00
standard_library_imports.rs Rename all ParseSess variables/fields/lifetimes as psess. 2024-03-05 08:11:45 +11:00
test_harness.rs Fix build 2024-06-06 20:27:25 -05:00
test.rs Rename Unsafe to Safety 2024-05-17 18:33:37 -03:00
trace_macros.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
util.rs Rename buffer_lint_with_diagnostic to buffer_lint 2024-05-21 20:16:39 +00:00