Skip to content

Commit aeb465c

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 b9ee026 commit aeb465c

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

0 commit comments

Comments
 (0)