rust/src/librustc_resolve
P1start 7d2231aa22 Change a few error messages to give code suggestions
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.
2015-04-21 21:13:42 +12:00
..
build_reduced_graph.rs Positive case of len() -> is_empty() 2015-04-14 20:26:03 -07:00
check_unused.rs rustc: combine partial_def_map and last_private_map into def_map. 2015-02-24 14:16:02 +02:00
diagnostics.rs Error if pub use references a private item. 2015-03-16 11:03:54 +13:00
lib.rs Change a few error messages to give code suggestions 2015-04-21 21:13:42 +12:00
record_exports.rs resolve: factor out resolve imports to its own module 2015-03-16 11:03:54 +13:00
resolve_imports.rs Positive case of len() -> is_empty() 2015-04-14 20:26:03 -07:00