1
Fork 0

Pass ImplTraitContext as &mut to avoid the need of ImplTraitContext::reborrow later on

This commit is contained in:
Santiago Pastorino 2022-09-02 17:38:58 -03:00
parent 3c72788461
commit 2166a36245
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
7 changed files with 125 additions and 102 deletions

View file

@ -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 {