https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124464

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks.

For unclosed delimiter tokens in source we try to add a secondary location
showing the opening corresponding delimiter.  So maybe the ideal here would be
something like:

$ ./gcc/crab1 test.rs -frust-crate-attr="(option1" -frust-crate-attr="option2("
-frust-crate-attr="option3("

crab1: error: unexpected token ‘end of file’ - expecting closing delimiter ‘)’
(for a delimited token tree)
  argument[2] | -frust-crate-attr="(option1"
                                   ~       ^

The "end of file" wording is rather weird here too, maybe just:

crab1: error: expecting closing delimiter ‘)’ (for a delimited token tree)
  argument[2] | -frust-crate-attr="(option1"
                                   ~       ^
(mostly just brainstorming here)

Reply via email to