Change DST syntax: type -> Sized?

closes #13367

[breaking-change] Use `Sized?` to indicate a dynamically sized type parameter or trait (used to be `type`). E.g.,

```
trait Tr for Sized? {}

fn foo<Sized? X: Share>(x: X) {}
```
This commit is contained in:
Nick Cameron 2014-07-08 14:26:02 +12:00
parent 6959931498
commit a0cfda53c4
29 changed files with 215 additions and 178 deletions

View file

@ -76,6 +76,7 @@ pub enum Token {
RBRACE,
POUND,
DOLLAR,
QUESTION,
/* Literals */
LIT_BYTE(u8),
@ -195,6 +196,7 @@ pub fn to_str(t: &Token) -> String {
RBRACE => "}".to_string(),
POUND => "#".to_string(),
DOLLAR => "$".to_string(),
QUESTION => "?".to_string(),
/* Literals */
LIT_BYTE(b) => {