Sign in
rust
/
rust
/
e8a00a7621606f8c4a34b679cefaaa6aecf2442e
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
auxiliary
/
use_self_macro.rs
blob: a8a85b4baefb728a4cd663ee47c98bceb02aea53 [
file
] [
log
] [
blame
]
macro_rules
!
use_self
{
(
impl
$ty
:
ident
{
fn
func
(&
$this
:
ident
)
{
[
fields
(
$
(
$field
:
ident
)*)]
}
}
)
=>
(
impl
$ty
{
fn
func
(&
$this
)
{
let
$ty
{
$
(
$field
),*
}
=
$this
;
}
}
)
}