1. 01 3月, 2018 1 次提交
  2. 24 2月, 2018 1 次提交
  3. 17 2月, 2018 2 次提交
  4. 23 1月, 2018 2 次提交
  5. 13 1月, 2018 1 次提交
  6. 21 12月, 2017 1 次提交
    • J
      Add GenericParam, refactor Generics in ast, hir, rustdoc · 78493ed2
      Jonas Platte 提交于
      The Generics now contain one Vec of an enum for the generic parameters,
      rather than two separate Vec's for lifetime and type parameters.
      
      Additionally, places that previously used Vec<LifetimeDef> now use
      Vec<GenericParam> instead.
      78493ed2
  7. 15 12月, 2017 1 次提交
  8. 06 12月, 2017 1 次提交
  9. 30 11月, 2017 1 次提交
  10. 24 11月, 2017 2 次提交
    • E
      Do not attemt to continue parsing after `pub ident` · c82e9e8e
      Esteban Küber 提交于
      Try to identify the following code in order to provide better
      diagnostics, but return the error to bail out early during the parse.
      c82e9e8e
    • E
      Do not rewind parser and ignore following blocks · 7c0387e3
      Esteban Küber 提交于
      When encountering `pub ident`, attempt to identify the code that comes
      afterwards, wether it is a brace block (assume it is a struct), a paren
      list followed by a colon (assume struct) or a paren list followed by a
      block (assume a fn). Consume those blocks to avoid any further parser
      errors and return a `Placeholder` item in order to allow the parser to
      continue. In the case of unenclosed blocks, the behavior is the same as
      it is currently: no further errors are processed.
      7c0387e3
  11. 04 11月, 2017 2 次提交
  12. 28 10月, 2017 1 次提交
  13. 26 10月, 2017 1 次提交
  14. 23 10月, 2017 1 次提交
  15. 18 10月, 2017 2 次提交
  16. 14 10月, 2017 1 次提交
  17. 28 7月, 2017 2 次提交
  18. 10 7月, 2017 1 次提交
  19. 25 5月, 2017 2 次提交
  20. 13 5月, 2017 2 次提交
  21. 12 5月, 2017 1 次提交
  22. 24 4月, 2017 1 次提交
    • G
      support `default impl` for specialization · 116e9831
      Gianni Ciccarelli 提交于
      this commit implements the first step of the `default impl` feature:
      all items in a `default impl` are (implicitly) `default` and hence
      specializable.
      In order to test this feature I've copied all the tests provided for the
      `default` method implementation (in run-pass/specialization and
      compile-fail/specialization directories) and moved the `default` keyword
      from the item to the impl.
      See referenced issue for further info
      116e9831
  23. 13 4月, 2017 1 次提交
  24. 03 4月, 2017 1 次提交
    • E
      Introduce `TyErr` independent from `TyInfer` · b83352e4
      Esteban Küber 提交于
      Add a `TyErr` type to represent unknown types in places where
      parse errors have happened, while still able to build the AST.
      
      Initially only used to represent incorrectly written fn arguments and
      avoid "expected X parameters, found Y" errors when called with the
      appropriate amount of parameters. We cannot use `TyInfer` for this as
      `_` is not allowed as a valid argument type.
      
      Example output:
      
      ```rust
      error: expected one of `:` or `@`, found `,`
        --> file.rs:12:9
         |
      12 | fn bar(x, y: usize) {}
         |         ^
      
      error[E0061]: this function takes 2 parameters but 3 parameters were supplied
        --> file.rs:19:9
         |
      12 | fn bar(x, y) {}
         | --------------- defined here
      ...
      19 |     bar(1, 2, 3);
         |         ^^^^^^^ expected 2 parameters
      ```
      b83352e4
  25. 12 3月, 2017 1 次提交
  26. 11 3月, 2017 1 次提交
  27. 25 2月, 2017 1 次提交
  28. 19 1月, 2017 1 次提交
  29. 17 1月, 2017 3 次提交
  30. 16 1月, 2017 1 次提交