Pass ImplTraitContext as &mut to avoid the need of ImplTraitContext::reborrow later on
This commit is contained in:
parent
3c72788461
commit
2166a36245
7 changed files with 125 additions and 102 deletions
|
@ -220,7 +220,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
|||
&sym.qself,
|
||||
&sym.path,
|
||||
ParamMode::Optional,
|
||||
ImplTraitContext::Disallowed(ImplTraitPosition::Path),
|
||||
&mut ImplTraitContext::Disallowed(ImplTraitPosition::Path),
|
||||
);
|
||||
hir::InlineAsmOperand::SymStatic { path, def_id }
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue