Introduce DeriveResolution
.
Making this a proper struct, and giving its fields names, makes things easier to understand.
This commit is contained in:
parent
11e95d43ae
commit
e2d2b1c698
5 changed files with 32 additions and 20 deletions
|
@ -482,7 +482,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
|
|||
derive_invocations.reserve(derives.len());
|
||||
derives
|
||||
.into_iter()
|
||||
.map(|(path, item, _exts, is_const)| {
|
||||
.map(|DeriveResolution { path, item, exts: _, is_const }| {
|
||||
// FIXME: Consider using the derive resolutions (`_exts`)
|
||||
// instead of enqueuing the derives to be resolved again later.
|
||||
let expn_id = LocalExpnId::fresh_empty();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue