Skip to content

Commit eb71507

Browse files
committed
FIXUP
ChangeLog: * c/gcc/rust/resolve/rust-forever-stack.h (class ResolutionError): Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
1 parent 9ac0205 commit eb71507

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

gcc/rust/resolve/rust-forever-stack.h

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -545,29 +545,18 @@ class ForeverStackStore
545545

546546
class ResolutionError
547547
{
548-
NodeId offending_id;
549548
location_t offending_location;
550549
std::vector<Identifier> suggestions;
551550

552-
ResolutionError (NodeId node_id, location_t loc,
553-
std::vector<Identifier> suggestions)
554-
: offending_id (node_id), offending_location (loc),
555-
suggestions (suggestions)
551+
ResolutionError (location_t loc, std::vector<Identifier> suggestions)
552+
: offending_location (loc), suggestions (suggestions)
556553
{}
557554

558555
public:
559-
template <typename T>
560-
static ResolutionError make_error (const T &node,
561-
std::vector<Identifier> suggestions = {})
562-
{
563-
return ResolutionError (node.get_node_id (), node.get_locus (),
564-
suggestions);
565-
}
566-
567556
static ResolutionError make_error (location_t loc,
568557
std::vector<Identifier> suggestions = {})
569558
{
570-
return ResolutionError (UNKNOWN_NODEID, loc, suggestions);
559+
return ResolutionError (loc, suggestions);
571560
}
572561
};
573562

0 commit comments

Comments
 (0)