about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-01-27 01:27:12 +0000
committerbors <bors@rust-lang.org>2017-01-27 01:27:12 +0000
commit23a94697c2fa67ec750a8fc09b2e86213b5e0af1 (patch)
tree453b69936662fd4b908e63a5366d005aa6cb730c /src/libstd
parent8430042a49bbd49bbb4fbc54f457feb5fb614f56 (diff)
parentbd4d5ec758cac866af2ca8fc09b27ce0d0112786 (diff)
downloadrust-23a94697c2fa67ec750a8fc09b2e86213b5e0af1.tar.gz
rust-23a94697c2fa67ec750a8fc09b2e86213b5e0af1.zip
Auto merge of #39158 - petrochenkov:bounds, r=nikomatsakis
Bounds parsing refactoring 2

See https://github.com/rust-lang/rust/pull/37511 for previous discussion.
cc @matklad

Relaxed parsing rules:
 - zero bounds after `:` are allowed in all contexts.
 - zero predicates are allowed after `where`.
- trailing separator `,` is allowed after predicates in `where` clauses not followed by `{`.

Other parsing rules:
 - trailing separator `+` is still allowed in all bound lists.

Code is also cleaned up and tests added.

I haven't touched parsing of trait object types yet, I'll do it later.
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions