Reformat use
declarations.
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
This commit is contained in:
parent
118f9350c5
commit
84ac80f192
1865 changed files with 8367 additions and 9199 deletions
|
@ -1,8 +1,9 @@
|
|||
//! List of the accepted feature gates.
|
||||
|
||||
use super::{to_nonzero, Feature};
|
||||
use rustc_span::symbol::sym;
|
||||
|
||||
use super::{to_nonzero, Feature};
|
||||
|
||||
macro_rules! declare_features {
|
||||
($(
|
||||
$(#[doc = $doc:tt])* (accepted, $feature:ident, $ver:expr, $issue:expr),
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
//! Built-in attributes and `cfg` flag gating.
|
||||
|
||||
use std::sync::LazyLock;
|
||||
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
use AttributeDuplicates::*;
|
||||
use AttributeGate::*;
|
||||
use AttributeType::*;
|
||||
|
||||
use crate::{Features, Stability};
|
||||
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
|
||||
use std::sync::LazyLock;
|
||||
|
||||
type GateFn = fn(&Features) -> bool;
|
||||
|
||||
macro_rules! cfg_fn {
|
||||
|
|
|
@ -25,9 +25,10 @@ mod unstable;
|
|||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
use rustc_span::symbol::Symbol;
|
||||
use std::num::NonZero;
|
||||
|
||||
use rustc_span::symbol::Symbol;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Feature {
|
||||
pub name: Symbol,
|
||||
|
@ -126,11 +127,10 @@ pub fn find_feature_issue(feature: Symbol, issue: GateIssue) -> Option<NonZero<u
|
|||
}
|
||||
|
||||
pub use accepted::ACCEPTED_FEATURES;
|
||||
pub use builtin_attrs::AttributeDuplicates;
|
||||
pub use builtin_attrs::{
|
||||
deprecated_attributes, encode_cross_crate, find_gated_cfg, is_builtin_attr_name,
|
||||
is_valid_for_get_attr, AttributeGate, AttributeSafety, AttributeTemplate, AttributeType,
|
||||
BuiltinAttribute, GatedCfg, BUILTIN_ATTRIBUTES, BUILTIN_ATTRIBUTE_MAP,
|
||||
is_valid_for_get_attr, AttributeDuplicates, AttributeGate, AttributeSafety, AttributeTemplate,
|
||||
AttributeType, BuiltinAttribute, GatedCfg, BUILTIN_ATTRIBUTES, BUILTIN_ATTRIBUTE_MAP,
|
||||
};
|
||||
pub use removed::REMOVED_FEATURES;
|
||||
pub use unstable::{Features, INCOMPATIBLE_FEATURES, UNSTABLE_FEATURES};
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
//! List of the removed feature gates.
|
||||
|
||||
use super::{to_nonzero, Feature};
|
||||
use rustc_span::symbol::sym;
|
||||
|
||||
use super::{to_nonzero, Feature};
|
||||
|
||||
pub struct RemovedFeature {
|
||||
pub feature: Feature,
|
||||
pub reason: Option<&'static str>,
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
//! List of the unstable feature gates.
|
||||
|
||||
use super::{to_nonzero, Feature};
|
||||
|
||||
use rustc_data_structures::fx::FxHashSet;
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
use rustc_span::Span;
|
||||
|
||||
use super::{to_nonzero, Feature};
|
||||
|
||||
pub struct UnstableFeature {
|
||||
pub feature: Feature,
|
||||
pub set_enabled: fn(&mut Features),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue