[−][src]Struct rustc_lint::unused::UnusedParens
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl UnusedParens[src]
impl UnusedParensfn check_unused_parens_core(
&self,
cx: &EarlyContext,
value: &Expr,
msg: &str,
struct_lit_needs_parens: bool
)[src]
fn check_unused_parens_core(
&self,
cx: &EarlyContext,
value: &Expr,
msg: &str,
struct_lit_needs_parens: bool
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl Copy for UnusedParens[src]
impl Copy for UnusedParensimpl Clone for UnusedParens[src]
impl Clone for UnusedParensfn clone(&self) -> UnusedParens[src]
fn clone(&self) -> UnusedParensReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl LintPass for UnusedParens[src]
impl LintPass for UnusedParensfn get_lints(&self) -> LintArray[src]
fn get_lints(&self) -> LintArray🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Get descriptions of the lints this LintPass object can emit. Read more
impl EarlyLintPass for UnusedParens[src]
impl EarlyLintPass for UnusedParensfn check_expr(&mut self, cx: &EarlyContext, e: &Expr)[src]
fn check_expr(&mut self, cx: &EarlyContext, e: &Expr)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_stmt(&mut self, cx: &EarlyContext, s: &Stmt)[src]
fn check_stmt(&mut self, cx: &EarlyContext, s: &Stmt)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_ident(&mut self, &EarlyContext, Ident)[src]
fn check_ident(&mut self, &EarlyContext, Ident)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_crate(&mut self, &EarlyContext, &Crate)[src]
fn check_crate(&mut self, &EarlyContext, &Crate)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_crate_post(&mut self, &EarlyContext, &Crate)[src]
fn check_crate_post(&mut self, &EarlyContext, &Crate)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_mod(&mut self, &EarlyContext, &Mod, Span, NodeId)[src]
fn check_mod(&mut self, &EarlyContext, &Mod, Span, NodeId)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_mod_post(&mut self, &EarlyContext, &Mod, Span, NodeId)[src]
fn check_mod_post(&mut self, &EarlyContext, &Mod, Span, NodeId)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_foreign_item(&mut self, &EarlyContext, &ForeignItem)[src]
fn check_foreign_item(&mut self, &EarlyContext, &ForeignItem)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_foreign_item_post(&mut self, &EarlyContext, &ForeignItem)[src]
fn check_foreign_item_post(&mut self, &EarlyContext, &ForeignItem)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_item(&mut self, &EarlyContext, &Item)[src]
fn check_item(&mut self, &EarlyContext, &Item)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_item_post(&mut self, &EarlyContext, &Item)[src]
fn check_item_post(&mut self, &EarlyContext, &Item)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_local(&mut self, &EarlyContext, &Local)[src]
fn check_local(&mut self, &EarlyContext, &Local)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_block(&mut self, &EarlyContext, &Block)[src]
fn check_block(&mut self, &EarlyContext, &Block)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_block_post(&mut self, &EarlyContext, &Block)[src]
fn check_block_post(&mut self, &EarlyContext, &Block)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_arm(&mut self, &EarlyContext, &Arm)[src]
fn check_arm(&mut self, &EarlyContext, &Arm)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_pat(&mut self, &EarlyContext, &Pat)[src]
fn check_pat(&mut self, &EarlyContext, &Pat)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_expr_post(&mut self, &EarlyContext, &Expr)[src]
fn check_expr_post(&mut self, &EarlyContext, &Expr)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_ty(&mut self, &EarlyContext, &Ty)[src]
fn check_ty(&mut self, &EarlyContext, &Ty)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_generic_param(&mut self, &EarlyContext, &GenericParam)[src]
fn check_generic_param(&mut self, &EarlyContext, &GenericParam)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_generics(&mut self, &EarlyContext, &Generics)[src]
fn check_generics(&mut self, &EarlyContext, &Generics)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_where_predicate(&mut self, &EarlyContext, &WherePredicate)[src]
fn check_where_predicate(&mut self, &EarlyContext, &WherePredicate)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_poly_trait_ref(
&mut self,
&EarlyContext,
&PolyTraitRef,
&TraitBoundModifier
)[src]
fn check_poly_trait_ref(
&mut self,
&EarlyContext,
&PolyTraitRef,
&TraitBoundModifier
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_fn(&mut self, &EarlyContext, FnKind, &FnDecl, Span, NodeId)[src]
fn check_fn(&mut self, &EarlyContext, FnKind, &FnDecl, Span, NodeId)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_fn_post(&mut self, &EarlyContext, FnKind, &FnDecl, Span, NodeId)[src]
fn check_fn_post(&mut self, &EarlyContext, FnKind, &FnDecl, Span, NodeId)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_trait_item(&mut self, &EarlyContext, &TraitItem)[src]
fn check_trait_item(&mut self, &EarlyContext, &TraitItem)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_trait_item_post(&mut self, &EarlyContext, &TraitItem)[src]
fn check_trait_item_post(&mut self, &EarlyContext, &TraitItem)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_impl_item(&mut self, &EarlyContext, &ImplItem)[src]
fn check_impl_item(&mut self, &EarlyContext, &ImplItem)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_impl_item_post(&mut self, &EarlyContext, &ImplItem)[src]
fn check_impl_item_post(&mut self, &EarlyContext, &ImplItem)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_struct_def(
&mut self,
&EarlyContext,
&VariantData,
Ident,
&Generics,
NodeId
)[src]
fn check_struct_def(
&mut self,
&EarlyContext,
&VariantData,
Ident,
&Generics,
NodeId
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_struct_def_post(
&mut self,
&EarlyContext,
&VariantData,
Ident,
&Generics,
NodeId
)[src]
fn check_struct_def_post(
&mut self,
&EarlyContext,
&VariantData,
Ident,
&Generics,
NodeId
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_struct_field(&mut self, &EarlyContext, &StructField)[src]
fn check_struct_field(&mut self, &EarlyContext, &StructField)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_variant(&mut self, &EarlyContext, &Spanned<Variant_>, &Generics)[src]
fn check_variant(&mut self, &EarlyContext, &Spanned<Variant_>, &Generics)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_variant_post(&mut self, &EarlyContext, &Spanned<Variant_>, &Generics)[src]
fn check_variant_post(&mut self, &EarlyContext, &Spanned<Variant_>, &Generics)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_lifetime(&mut self, &EarlyContext, &Lifetime)[src]
fn check_lifetime(&mut self, &EarlyContext, &Lifetime)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_path(&mut self, &EarlyContext, &Path, NodeId)[src]
fn check_path(&mut self, &EarlyContext, &Path, NodeId)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_attribute(&mut self, &EarlyContext, &Attribute)[src]
fn check_attribute(&mut self, &EarlyContext, &Attribute)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_mac_def(&mut self, &EarlyContext, &MacroDef, _id: NodeId)[src]
fn check_mac_def(&mut self, &EarlyContext, &MacroDef, _id: NodeId)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check_mac(&mut self, &EarlyContext, &Spanned<Mac_>)[src]
fn check_mac(&mut self, &EarlyContext, &Spanned<Mac_>)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn enter_lint_attrs(&mut self, &EarlyContext, &[Attribute])[src]
fn enter_lint_attrs(&mut self, &EarlyContext, &[Attribute])🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Called when entering a syntax node that can have lint attributes such as #[allow(...)]. Called with all the attributes of that node. Read more
fn exit_lint_attrs(&mut self, &EarlyContext, &[Attribute])[src]
fn exit_lint_attrs(&mut self, &EarlyContext, &[Attribute])🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Counterpart to enter_lint_attrs.
Auto Trait Implementations
impl Send for UnusedParens
impl Send for UnusedParensimpl Sync for UnusedParens
impl Sync for UnusedParensBlanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, type Owned = T
fn to_owned(&self) -> T[src]
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src]
fn clone_into(&self, target: &mut T)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T[src]
fn borrow(&self) -> &TImmutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<E> SpecializationError for E[src]
impl<E> SpecializationError for Efn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized, [src]
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Create an error for a missing method specialization. Defaults to panicking with type, trait & method names. S is the encoder/decoder state type, T is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden. Read more
impl<T> Erased for T[src]
impl<T> Erased for Timpl<T> Send for T where
T: ?Sized, [src]
impl<T> Send for T where
T: ?Sized, impl<T> Sync for T where
T: ?Sized, [src]
impl<T> Sync for T where
T: ?Sized, impl<T> Erased for T
impl<T> Erased for Timpl<T> MaybeResult for T[src]
impl<T> MaybeResult for Tfn from_ok(x: T) -> T[src]
fn from_ok(x: T) -> T🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn map_same<F>(self, f: F) -> T where
F: FnOnce(T) -> T, [src]
fn map_same<F>(self, f: F) -> T where
F: FnOnce(T) -> T, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<'a, T> Captures for T where
T: ?Sized, [src]
impl<'a, T> Captures for T where
T: ?Sized,