
Rollup of 7 pull requests Successful merges: - #137314 (change definitely unproductive cycles to error) - #137701 (Convert `ShardedHashMap` to use `hashbrown::HashTable`) - #138269 (uefi: fs: Implement FileType, FilePermissions and FileAttr) - #138331 (Use `RUSTC_LINT_FLAGS` more) - #138345 (Some autodiff cleanups) - #138387 (intrinsics: remove unnecessary leading underscore from argument names) - #138390 (fix incorrect tracing log) r? `@ghost` `@rustbot` modify labels: rollup
53 lines
1.3 KiB
Rust
53 lines
1.3 KiB
Rust
//! The Rust Abstract Syntax Tree (AST).
|
|
//!
|
|
//! # Note
|
|
//!
|
|
//! This API is completely unstable and subject to change.
|
|
|
|
// tidy-alphabetical-start
|
|
#![allow(internal_features)]
|
|
#![cfg_attr(doc, recursion_limit = "256")] // FIXME(nnethercote): will be removed by #124141
|
|
#![doc(
|
|
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
|
|
test(attr(deny(warnings)))
|
|
)]
|
|
#![doc(rust_logo)]
|
|
#![feature(associated_type_defaults)]
|
|
#![feature(box_patterns)]
|
|
#![feature(if_let_guard)]
|
|
#![feature(let_chains)]
|
|
#![feature(negative_impls)]
|
|
#![feature(never_type)]
|
|
#![feature(rustdoc_internals)]
|
|
#![feature(stmt_expr_attributes)]
|
|
// tidy-alphabetical-end
|
|
|
|
pub mod util {
|
|
pub mod case;
|
|
pub mod classify;
|
|
pub mod comments;
|
|
pub mod literal;
|
|
pub mod parser;
|
|
pub mod unicode;
|
|
}
|
|
|
|
pub mod ast;
|
|
pub mod ast_traits;
|
|
pub mod attr;
|
|
pub mod entry;
|
|
pub mod expand;
|
|
pub mod format;
|
|
pub mod mut_visit;
|
|
pub mod node_id;
|
|
pub mod ptr;
|
|
pub mod token;
|
|
pub mod tokenstream;
|
|
pub mod visit;
|
|
|
|
pub use self::ast::*;
|
|
pub use self::ast_traits::{AstDeref, AstNodeWrapper, HasAttrs, HasNodeId, HasTokens};
|
|
|
|
/// Requirements for a `StableHashingContext` to be used in this crate.
|
|
/// This is a hack to allow using the `HashStable_Generic` derive macro
|
|
/// instead of implementing everything in `rustc_middle`.
|
|
pub trait HashStableContext: rustc_span::HashStableContext {}
|