Skip to content

Commit eb1c6f9

Browse files
committed
nr: Remove unused locus in finalize_rebind_import.
gcc/rust/ChangeLog: * resolve/rust-early-name-resolver-2.0.cc (Early::finalize_rebind_import): Remove locus variable.
1 parent 48a6925 commit eb1c6f9

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

gcc/rust/resolve/rust-early-name-resolver-2.0.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,15 +505,13 @@ Early::finalize_rebind_import (const Early::ImportPair &mapping)
505505
auto data = mapping.data;
506506

507507
NodeId import_id = UNKNOWN_NODEID;
508-
location_t locus = UNKNOWN_LOCATION;
509508
std::string declared_name;
510509

511510
// FIXME: This needs to be done in `FinalizeImports`
512511
switch (rebind.get_new_bind_type ())
513512
{
514513
case AST::UseTreeRebind::NewBindType::IDENTIFIER:
515514
declared_name = rebind.get_identifier ().as_string ();
516-
locus = rebind.get_identifier ().get_locus ();
517515
import_id = rebind.get_node_id ();
518516
break;
519517
case AST::UseTreeRebind::NewBindType::NONE:
@@ -533,7 +531,6 @@ Early::finalize_rebind_import (const Early::ImportPair &mapping)
533531
declared_name = path.get_final_segment ().as_string ();
534532
import_id = path.get_final_segment ().get_node_id ();
535533
}
536-
locus = path.get_final_segment ().get_locus ();
537534
break;
538535
}
539536
case AST::UseTreeRebind::NewBindType::WILDCARD:

0 commit comments

Comments
 (0)