rust/src/test
bors 6b29a7d564 Auto merge of #24683 - P1start:help-suggestions, r=nrc
This PR uses the inline error suggestions introduced in #24242 to modify a few existing `help` messages. 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.
2015-04-23 02:45:06 +00:00
..
auxiliary rollup merge of #24636: alexcrichton/remove-deprecated 2015-04-21 15:28:53 -07:00
bench std: Bring back f32::from_str_radix as an unstable API 2015-04-21 15:23:54 -07:00
codegen Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
compile-fail Auto merge of #24683 - P1start:help-suggestions, r=nrc 2015-04-23 02:45:06 +00:00
compile-fail-fulldeps Fallout to tests expecting unconditional help output from missing features. 2015-04-02 19:30:45 +02:00
debuginfo Remove references to old_{path,io} 2015-04-21 08:16:03 -07:00
parse-fail Auto merge of #24683 - P1start:help-suggestions, r=nrc 2015-04-23 02:45:06 +00:00
pretty std: Bring back f32::from_str_radix as an unstable API 2015-04-21 15:23:54 -07:00
run-fail unit test for checked overflow during signed negation. 2015-04-17 15:32:30 +02:00
run-make rollup merge of #24636: alexcrichton/remove-deprecated 2015-04-21 15:28:53 -07:00
run-pass Rollup merge of #24688 - SimonSapin:fmt-write-char, r=alexcrichton 2015-04-23 03:21:02 +05:30
run-pass-fulldeps Test fixes and rebase conflicts, round 2 2015-04-14 17:40:37 -07:00
run-pass-valgrind test: Fix fallout in run-pass tests 2015-04-14 10:14:19 -07:00
rustdoc rustdoc: Inline methods inhereted through Deref 2015-04-16 13:28:15 -07:00