Rollup merge of #141284 - compiler-errors:query-nit, r=oli-obk
Allow trailing comma after argument in query definition Don't catastrophically fail the query macro if you put a comma after your query key! r? oli-obk
This commit is contained in:
commit
e4836fbb89
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ impl Parse for Query {
|
|||
let key = Pat::parse_single(&arg_content)?;
|
||||
arg_content.parse::<Token![:]>()?;
|
||||
let arg = arg_content.parse()?;
|
||||
let _ = arg_content.parse::<Option<Token![,]>>()?;
|
||||
let result = input.parse()?;
|
||||
|
||||
// Parse the query modifiers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue