File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -507,15 +507,13 @@ Early::finalize_rebind_import (const Early::ImportPair &mapping)
507507 auto data = mapping.data ;
508508
509509 NodeId import_id = UNKNOWN_NODEID ;
510- location_t locus = UNKNOWN_LOCATION ;
511510 std::string declared_name;
512511
513512 // FIXME: This needs to be done in `FinalizeImports`
514513 switch (rebind.get_new_bind_type ())
515514 {
516515 case AST ::UseTreeRebind::NewBindType::IDENTIFIER :
517516 declared_name = rebind.get_identifier ().as_string ();
518- locus = rebind.get_identifier ().get_locus ();
519517 import_id = rebind.get_node_id ();
520518 break ;
521519 case AST ::UseTreeRebind::NewBindType::NONE :
@@ -535,7 +533,6 @@ Early::finalize_rebind_import (const Early::ImportPair &mapping)
535533 declared_name = path.get_final_segment ().as_string ();
536534 import_id = path.get_final_segment ().get_node_id ();
537535 }
538- locus = path.get_final_segment ().get_locus ();
539536 break ;
540537 }
541538 case AST ::UseTreeRebind::NewBindType::WILDCARD :
You can’t perform that action at this time.
0 commit comments