Struct rustc_lint::unused::UnusedBraces [−][src]
pub struct UnusedBraces;
Implementations
Trait Implementations
fn check_poly_trait_ref(
&mut self,
_: &EarlyContext<'_>,
_: &PolyTraitRef,
_: &TraitBoundModifier
)Due to ref pattern, there can be a difference between using
{ expr } and expr in pattern-matching contexts. This means
that we should only lint unused_parens and not unused_braces
in this case. Read more
fn check_unused_delims_expr(
&self,
cx: &EarlyContext<'_>,
value: &Expr,
ctx: UnusedDelimsCtx,
followed_by_block: bool,
left_pos: Option<BytePos>,
right_pos: Option<BytePos>
)fn emit_unused_delims_expr(
&self,
cx: &EarlyContext<'_>,
value: &Expr,
ctx: UnusedDelimsCtx,
left_pos: Option<BytePos>,
right_pos: Option<BytePos>
)fn emit_unused_delims(
&self,
cx: &EarlyContext<'_>,
span: Span,
pattern: &str,
msg: &str,
keep_space: (bool, bool)
)Auto Trait Implementations
impl RefUnwindSafe for UnusedBracesimpl Send for UnusedBracesimpl Sync for UnusedBracesimpl Unpin for UnusedBracesimpl UnwindSafe for UnusedBracesBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes