[−][src]Struct rustc_lint::unused::UnusedBraces
Implementations
impl UnusedBraces[src]
Trait Implementations
impl Clone for UnusedBraces[src]
pub fn clone(&self) -> UnusedBraces[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for UnusedBraces[src]
impl EarlyLintPass for UnusedBraces[src]
pub fn check_stmt(&mut self, cx: &EarlyContext<'_>, s: &Stmt)[src]
pub fn check_expr(&mut self, cx: &EarlyContext<'_>, e: &Expr)[src]
pub fn check_generic_arg(&mut self, cx: &EarlyContext<'_>, arg: &GenericArg)[src]
pub fn check_variant(&mut self, cx: &EarlyContext<'_>, v: &Variant)[src]
pub fn check_ty(&mut self, cx: &EarlyContext<'_>, ty: &Ty)[src]
pub fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item)[src]
pub fn check_param(&mut self, _: &EarlyContext<'_>, _: &Param)[src]
pub fn check_ident(&mut self, _: &EarlyContext<'_>, _: Ident)[src]
pub fn check_crate(&mut self, _: &EarlyContext<'_>, _: &Crate)[src]
pub fn check_crate_post(&mut self, _: &EarlyContext<'_>, _: &Crate)[src]
pub fn check_mod(&mut self, _: &EarlyContext<'_>, _: &Mod, _: Span, _: NodeId)[src]
pub fn check_mod_post(
&mut self,
_: &EarlyContext<'_>,
_: &Mod,
_: Span,
_: NodeId
)[src]
&mut self,
_: &EarlyContext<'_>,
_: &Mod,
_: Span,
_: NodeId
)
pub fn check_foreign_item(&mut self, _: &EarlyContext<'_>, _: &ForeignItem)[src]
pub fn check_foreign_item_post(&mut self, _: &EarlyContext<'_>, _: &ForeignItem)[src]
pub fn check_item_post(&mut self, _: &EarlyContext<'_>, _: &Item)[src]
pub fn check_local(&mut self, _: &EarlyContext<'_>, _: &Local)[src]
pub fn check_block(&mut self, _: &EarlyContext<'_>, _: &Block)[src]
pub fn check_block_post(&mut self, _: &EarlyContext<'_>, _: &Block)[src]
pub fn check_arm(&mut self, _: &EarlyContext<'_>, _: &Arm)[src]
pub fn check_pat(&mut self, _: &EarlyContext<'_>, _: &Pat)[src]
pub fn check_anon_const(&mut self, _: &EarlyContext<'_>, _: &AnonConst)[src]
pub fn check_pat_post(&mut self, _: &EarlyContext<'_>, _: &Pat)[src]
pub fn check_expr_post(&mut self, _: &EarlyContext<'_>, _: &Expr)[src]
pub fn check_generic_param(&mut self, _: &EarlyContext<'_>, _: &GenericParam)[src]
pub fn check_generics(&mut self, _: &EarlyContext<'_>, _: &Generics)[src]
pub fn check_where_predicate(
&mut self,
_: &EarlyContext<'_>,
_: &WherePredicate
)[src]
&mut self,
_: &EarlyContext<'_>,
_: &WherePredicate
)
pub fn check_poly_trait_ref(
&mut self,
_: &EarlyContext<'_>,
_: &PolyTraitRef,
_: &TraitBoundModifier
)[src]
&mut self,
_: &EarlyContext<'_>,
_: &PolyTraitRef,
_: &TraitBoundModifier
)
pub fn check_fn(
&mut self,
_: &EarlyContext<'_>,
_: FnKind<'_>,
_: Span,
_: NodeId
)[src]
&mut self,
_: &EarlyContext<'_>,
_: FnKind<'_>,
_: Span,
_: NodeId
)
pub fn check_fn_post(
&mut self,
_: &EarlyContext<'_>,
_: FnKind<'_>,
_: Span,
_: NodeId
)[src]
&mut self,
_: &EarlyContext<'_>,
_: FnKind<'_>,
_: Span,
_: NodeId
)
pub fn check_trait_item(&mut self, _: &EarlyContext<'_>, _: &AssocItem)[src]
pub fn check_trait_item_post(&mut self, _: &EarlyContext<'_>, _: &AssocItem)[src]
pub fn check_impl_item(&mut self, _: &EarlyContext<'_>, _: &AssocItem)[src]
pub fn check_impl_item_post(&mut self, _: &EarlyContext<'_>, _: &AssocItem)[src]
pub fn check_struct_def(&mut self, _: &EarlyContext<'_>, _: &VariantData)[src]
pub fn check_struct_def_post(&mut self, _: &EarlyContext<'_>, _: &VariantData)[src]
pub fn check_struct_field(&mut self, _: &EarlyContext<'_>, _: &StructField)[src]
pub fn check_variant_post(&mut self, _: &EarlyContext<'_>, _: &Variant)[src]
pub fn check_lifetime(&mut self, _: &EarlyContext<'_>, _: &Lifetime)[src]
pub fn check_path(&mut self, _: &EarlyContext<'_>, _: &Path, _: NodeId)[src]
pub fn check_attribute(&mut self, _: &EarlyContext<'_>, _: &Attribute)[src]
pub fn check_mac_def(&mut self, _: &EarlyContext<'_>, _: &MacroDef, _: NodeId)[src]
pub fn check_mac(&mut self, _: &EarlyContext<'_>, _: &MacCall)[src]
pub fn enter_lint_attrs(&mut self, _: &EarlyContext<'_>, _: &[Attribute])[src]
pub fn exit_lint_attrs(&mut self, _: &EarlyContext<'_>, _: &[Attribute])[src]
impl LintPass for UnusedBraces[src]
impl UnusedDelimLint for UnusedBraces[src]
pub(in unused) const DELIM_STR: &'static str[src]
pub(in unused) const LINT_EXPR_IN_PATTERN_MATCHING_CTX: bool[src]
pub(in unused) fn lint(
&self
) -> &'static Lint[src]
&self
) -> &'static Lint
pub(in unused) fn check_unused_delims_expr(
&self,
cx: &EarlyContext<'_>,
value: &Expr,
ctx: UnusedDelimsCtx,
followed_by_block: bool,
left_pos: Option<BytePos>,
right_pos: Option<BytePos>
)[src]
&self,
cx: &EarlyContext<'_>,
value: &Expr,
ctx: UnusedDelimsCtx,
followed_by_block: bool,
left_pos: Option<BytePos>,
right_pos: Option<BytePos>
)
pub(in unused) fn is_expr_delims_necessary(
inner: &Expr,
followed_by_block: bool
) -> bool[src]
inner: &Expr,
followed_by_block: bool
) -> bool
pub(in unused) fn emit_unused_delims_expr(
&self,
cx: &EarlyContext<'_>,
value: &Expr,
ctx: UnusedDelimsCtx,
left_pos: Option<BytePos>,
right_pos: Option<BytePos>
)[src]
&self,
cx: &EarlyContext<'_>,
value: &Expr,
ctx: UnusedDelimsCtx,
left_pos: Option<BytePos>,
right_pos: Option<BytePos>
)
pub(in unused) fn emit_unused_delims(
&self,
cx: &EarlyContext<'_>,
span: Span,
pattern: &str,
msg: &str,
keep_space: (bool, bool)
)[src]
&self,
cx: &EarlyContext<'_>,
span: Span,
pattern: &str,
msg: &str,
keep_space: (bool, bool)
)
pub(in unused) fn check_expr(
&mut self,
cx: &EarlyContext<'_>,
e: &Expr
)[src]
&mut self,
cx: &EarlyContext<'_>,
e: &Expr
)
pub(in unused) fn check_stmt(
&mut self,
cx: &EarlyContext<'_>,
s: &Stmt
)[src]
&mut self,
cx: &EarlyContext<'_>,
s: &Stmt
)
pub(in unused) fn check_item(
&mut self,
cx: &EarlyContext<'_>,
item: &Item
)[src]
&mut self,
cx: &EarlyContext<'_>,
item: &Item
)
Auto Trait Implementations
impl RefUnwindSafe for UnusedBraces
impl Send for UnusedBraces
impl Sync for UnusedBraces
impl Unpin for UnusedBraces
impl UnwindSafe for UnusedBraces
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,