You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parser method parse_item will unconditionally fail if it encounters a view item (use or extern crate).
This is desired behavior if parsing the body of a function. However, there are no public methods that allow parsing either of these items individually. This makes it impossible to parse the full range of possible input to a REPL.
If it's acceptable, I could make a pull request for public methods parse_use (which already exists, privately) and parse_extern_crate.
The text was updated successfully, but these errors were encountered:
Parser
methodparse_item
will unconditionally fail if it encounters a view item (use
orextern crate
).This is desired behavior if parsing the body of a function. However, there are no public methods that allow parsing either of these items individually. This makes it impossible to parse the full range of possible input to a REPL.
If it's acceptable, I could make a pull request for public methods
parse_use
(which already exists, privately) andparse_extern_crate
.The text was updated successfully, but these errors were encountered: