Remove mutbl
argument from create_struct_patterns
.
It's always `ast::Mutability::Not`.
This commit is contained in:
parent
a42e50e230
commit
f314ece275
1 changed files with 1 additions and 4 deletions
|
@ -1072,7 +1072,6 @@ impl<'a> MethodDef<'a> {
|
||||||
struct_path,
|
struct_path,
|
||||||
struct_def,
|
struct_def,
|
||||||
&prefixes,
|
&prefixes,
|
||||||
ast::Mutability::Not,
|
|
||||||
use_temporaries,
|
use_temporaries,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1219,7 +1218,6 @@ impl<'a> MethodDef<'a> {
|
||||||
variant_path,
|
variant_path,
|
||||||
&variant.data,
|
&variant.data,
|
||||||
&prefixes,
|
&prefixes,
|
||||||
ast::Mutability::Not,
|
|
||||||
use_temporaries,
|
use_temporaries,
|
||||||
)
|
)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
@ -1453,7 +1451,6 @@ impl<'a> TraitDef<'a> {
|
||||||
struct_path: ast::Path,
|
struct_path: ast::Path,
|
||||||
struct_def: &'a VariantData,
|
struct_def: &'a VariantData,
|
||||||
prefixes: &[String],
|
prefixes: &[String],
|
||||||
mutbl: ast::Mutability,
|
|
||||||
use_temporaries: bool,
|
use_temporaries: bool,
|
||||||
) -> Vec<P<ast::Pat>> {
|
) -> Vec<P<ast::Pat>> {
|
||||||
prefixes
|
prefixes
|
||||||
|
@ -1465,7 +1462,7 @@ impl<'a> TraitDef<'a> {
|
||||||
let binding_mode = if use_temporaries {
|
let binding_mode = if use_temporaries {
|
||||||
ast::BindingMode::ByValue(ast::Mutability::Not)
|
ast::BindingMode::ByValue(ast::Mutability::Not)
|
||||||
} else {
|
} else {
|
||||||
ast::BindingMode::ByRef(mutbl)
|
ast::BindingMode::ByRef(ast::Mutability::Not)
|
||||||
};
|
};
|
||||||
let ident = self.mk_pattern_ident(prefix, i);
|
let ident = self.mk_pattern_ident(prefix, i);
|
||||||
let path = ident.with_span_pos(sp);
|
let path = ident.with_span_pos(sp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue