resolve: Leave a comment about name bindings for legacy derive helpers
This commit is contained in:
parent
50bbe01de0
commit
453edebc70
1 changed files with 5 additions and 0 deletions
|
@ -432,6 +432,11 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
}
|
||||
}
|
||||
Scope::DeriveHelpersCompat => {
|
||||
// FIXME: Try running this logic eariler, to allocate name bindings for
|
||||
// legacy derive helpers when creating an attribute invocation with
|
||||
// following derives. Legacy derive helpers are not common, so it shouldn't
|
||||
// affect performance. It should also allow to remove the `derives`
|
||||
// component from `ParentScope`.
|
||||
let mut result = Err(Determinacy::Determined);
|
||||
for derive in parent_scope.derives {
|
||||
let parent_scope = &ParentScope { derives: &[], ..*parent_scope };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue