rust/src/libsyntax/parse
bors 9413a926fc Auto merge of #27215 - pnkfelix:fsk-placer-take-5-just-in, r=nikomatsakis
Macro desugaring of `in PLACE { BLOCK }` into "simpler" expressions following the in-development "Placer" protocol.

Includes Placer API that one can override to integrate support for `in` into one's own type.  (See [RFC 809].)

[RFC 809]: https://github.com/rust-lang/rfcs/blob/master/text/0809-box-and-in-for-stdlib.md

Part of #22181

Replaced PR #26180.

Turns on the `in PLACE { BLOCK }` syntax, while leaving in support for the old `box (PLACE) EXPR` syntax (since we need to support that at least until we have a snapshot with support for `in PLACE { BLOCK }`.

(Note that we are not 100% committed to the `in PLACE { BLOCK }` syntax.  In particular I still want to play around with some other alternatives.  Still, I want to get the fundamental framework for the protocol landed so we can play with implementing it for non `Box` types.)

----

Also, this PR leaves out support for desugaring-based `box EXPR`.  We will hopefully land that in the future, but for the short term there are type-inference issues injected by that change that we want to resolve separately.
2015-07-24 10:12:20 +00:00
..
lexer Use a span from the correct file for the inner span of a module 2015-07-21 21:55:19 +12:00
attr.rs Work towards a non-panicing parser (libsyntax) 2015-04-05 09:52:50 +01:00
classify.rs Teach libsyntax about while let 2014-10-10 20:30:31 -04:00
common.rs Allow trailing commas in array patterns and attributes 2014-11-30 22:28:54 +13:00
mod.rs Use a span from the correct file for the inner span of a module 2015-07-21 21:55:19 +12:00
obsolete.rs Omit 'obsolete' note for warning if -Awarning 2015-04-16 22:23:36 -04:00
parser.rs Auto merge of #27215 - pnkfelix:fsk-placer-take-5-just-in, r=nikomatsakis 2015-07-24 10:12:20 +00:00
token.rs syntax: Add unquoting ast::{Generics,WhereClause} 2015-05-15 08:01:55 -07:00