2016-03-28 17:36:56 -04:00
|
|
|
//! Support for serializing the dep-graph and reloading it.
|
|
|
|
|
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 13:49:36 +10:00
|
|
|
// tidy-alphabetical-start
|
|
|
|
#![allow(internal_features)]
|
2021-10-29 12:14:17 -05:00
|
|
|
#![deny(missing_docs)]
|
2020-09-23 21:51:56 +02:00
|
|
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
2023-11-13 07:39:17 -05:00
|
|
|
#![doc(rust_logo)]
|
|
|
|
#![feature(rustdoc_internals)]
|
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 13:49:36 +10:00
|
|
|
// tidy-alphabetical-end
|
2016-03-28 17:36:56 -04:00
|
|
|
|
|
|
|
mod assert_dep_graph;
|
2022-09-26 15:42:12 +01:00
|
|
|
mod errors;
|
2016-03-28 17:36:56 -04:00
|
|
|
mod persist;
|
|
|
|
|
2020-05-12 15:56:02 +10:00
|
|
|
pub use persist::copy_cgu_workproduct_to_incr_comp_cache_dir;
|
2016-08-11 19:02:39 -04:00
|
|
|
pub use persist::finalize_session_directory;
|
2016-07-21 12:49:59 -04:00
|
|
|
pub use persist::in_incr_comp_dir;
|
2018-08-17 16:07:23 +02:00
|
|
|
pub use persist::in_incr_comp_dir_sess;
|
2017-10-19 14:32:39 +02:00
|
|
|
pub use persist::load_query_result_cache;
|
2016-08-11 19:02:39 -04:00
|
|
|
pub use persist::save_dep_graph;
|
2017-09-28 11:58:45 +02:00
|
|
|
pub use persist::save_work_product_index;
|
2023-09-20 15:38:18 +02:00
|
|
|
pub use persist::setup_dep_graph;
|
2018-02-13 13:37:32 +01:00
|
|
|
pub use persist::LoadResult;
|
2022-10-13 10:13:02 +01:00
|
|
|
|
2023-11-22 09:53:07 +11:00
|
|
|
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
|