Skip to content

Commit

Permalink
threw on unresolved question about what rustfmt should do here
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Sep 6, 2023
1 parent ae955a8 commit 57f1df9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion text/3399-cfg-attribute-in-where.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,13 @@ but that's not the way I would expect Rust to provide this kind of functionality
# Unresolved questions
[unresolved-questions]: #unresolved-questions

In theory, I don't see any harm in cfg-attributes decorating individual bounds on the right hand side of the colon. Is it worth adding that
* In theory, I don't see any harm in cfg-attributes decorating individual bounds on the right hand side of the colon. Is it worth adding that
potential feature as well? Personally, I don't see it as being worth the added complexity given that you can have multiple individual bound
declarations for the same item. Doing so would also create an inconsistency, given that this isn't currently allowed in angle-bracketed
bounds either.

* rustfmt is supposed to be able to format the where clause somehow, do we expect it to (try to) put the attribute on the same line, or would it always prefer the attribute on separate lines?

# Future possibilities
[future-possibilities]: #future-possibilities

Expand Down

0 comments on commit 57f1df9

Please sign in to comment.