1. 29 7月, 2017 1 次提交
    • A
      syntax: Capture a `TokenStream` when parsing items · 4886ec86
      Alex Crichton 提交于
      This is then later used by `proc_macro` to generate a new
      `proc_macro::TokenTree` which preserves span information. Unfortunately this
      isn't a bullet-proof approach as it doesn't handle the case when there's still
      other attributes on the item, especially inner attributes.
      
      Despite this the intention here is to solve the primary use case for procedural
      attributes, attached to functions as outer attributes, likely bare. In this
      situation we should be able to now yield a lossless stream of tokens to preserve
      span information.
      4886ec86
  2. 28 7月, 2017 8 次提交
  3. 27 7月, 2017 1 次提交
  4. 26 7月, 2017 2 次提交
    • V
      dda30f69
    • E
      Point at path segment on module not found · 552ff077
      Esteban Küber 提交于
      Point at the correct path segment on a import statement where a module
      doesn't exist.
      
      New output:
      
      ```rust
      error[E0432]: unresolved import `std::bar`
       --> <anon>:1:10
        |
      1 | use std::bar::{foo1, foo2};
        |          ^^^ Could not find `bar` in `std`
      ```
      
      instead of:
      
      ```rust
      error[E0432]: unresolved import `std::bar::foo1`
       --> <anon>:1:16
        |
      1 | use std::bar::{foo1, foo2};
        |                ^^^^ Could not find `bar` in `std`
      
      error[E0432]: unresolved import `std::bar::foo2`
       --> <anon>:1:22
        |
      1 | use std::bar::{foo1, foo2};
        |                      ^^^^ Could not find `bar` in `std`
      ```
      552ff077
  5. 25 7月, 2017 3 次提交
  6. 24 7月, 2017 2 次提交
  7. 23 7月, 2017 6 次提交
  8. 22 7月, 2017 3 次提交
  9. 21 7月, 2017 4 次提交
  10. 20 7月, 2017 1 次提交
  11. 19 7月, 2017 4 次提交
  12. 18 7月, 2017 5 次提交