1. 25 4月, 2015 1 次提交
  2. 24 4月, 2015 1 次提交
  3. 22 4月, 2015 15 次提交
  4. 21 4月, 2015 2 次提交
    • P
      Model lexer: Fix remaining issues · 13bc8afa
      Piotr Czarnecki 提交于
      13bc8afa
    • P
      Change a few error messages to give code suggestions · 7d2231aa
      P1start 提交于
      PR #24242 added the ability to the compiler to directly give suggestions about
      how to modify code to fix an error. The new errors look like this:
      
          foobar.rs:5:12: 5:25 error: expected a path on the left-hand side of `+`,
                                      not `&'static Copy` [E0178]
          foobar.rs:5     let x: &'static Copy + 'static;
                                 ^~~~~~~~~~~~~
          foobar.rs:5:12: 5:35 help: try adding parentheses (per RFC 438):
          foobar.rs:      let x: &'static (Copy + 'static);
      
          foobar.rs:2:13: 2:23 error: cast to unsized type: `&_` as `core::marker::Copy`
          foobar.rs:2     let x = &1 as Copy;
                                  ^~~~~~~~~~
          foobar.rs:2:19: 2:23 help: try casting to a reference instead:
          foobar.rs:      let x = &1 as &Copy;
      
          foobar.rs:7:24: 7:25 error: expected expression, found `;`
          foobar.rs:7     let x = box (1 + 1);
                                             ^
          foobar.rs:7:13: 7:16 help: try using `box()` instead:
          foobar.rs:      let x = box() (1 + 1);
      
      This also modifies compiletest to give the ability to directly test suggestions
      given by error messages.
      7d2231aa
  5. 17 4月, 2015 6 次提交
  6. 16 4月, 2015 5 次提交
  7. 15 4月, 2015 9 次提交
  8. 14 4月, 2015 1 次提交