Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
889: Don't insert a duplicate trailing comma in `gluon_codegen` r=Marwes a=Aaron1011 Currently, `gluon_codegen` unconditionall inserts a comma after the user-provided `where` clause. However, the `where` clause may already have a trailing comma, which will result in an unparsable `TokenStream` being generated. The `AliasRef` struct would be affected by this bug, but a rustc bug causes the exact parsed `TokenStream` to be lost in some cases (see rust-lang/rust#43081) - in this case, due to the presence of `#[cfg_attr]`. When PR rust-lang/rust#76130 is merged, the exact parsed `TokenStream` will be passed to proc-macros in more cases, exposing this bug. Co-authored-by: Aaron Hill <[email protected]>
- Loading branch information