rust/src/test/ui
Esteban Küber 552ff07758 Point at path segment on module not found
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`
```
2017-07-25 21:25:43 -07:00
..
block-result Only underline suggestion if it is not the only code being shown 2017-07-06 14:36:49 -07:00
borrowck Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
check_match Fix range_covered_by_constructor for exclusive ranges. 2017-07-16 17:34:09 +01:00
closure_context report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00
codemap_tests Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
compare-method Make sufficiently old or low-impact compatibility lints deny-by-default 2017-07-08 01:56:27 +03:00
cross-crate-macro-backtrace Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
did_you_mean Auto merge of #43251 - gaurikholkar:span_reorder, r=nikomatsakis 2017-07-20 03:36:14 +00:00
dropck Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
fmt Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
hello_world
impl-trait report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00
interior-mutability report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00
invalid-module-declaration Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
issue-37311-type-length-limit Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
issue-38875 report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00
issue-40402-ref-hints reorder span labels 2017-07-18 00:07:37 +05:30
issue-41652 Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
lifetime-errors report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00
lifetimes Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
lint report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00
macros Point at path segment on module not found 2017-07-25 21:25:43 -07:00
mismatched_types reorder span labels 2017-07-18 00:07:37 +05:30
missing-items remove associated_consts feature gate 2017-07-06 11:52:25 -07:00
on-unimplemented rustc_on_unimplemented supports referring to trait 2017-07-05 16:46:59 -07:00
print_type_sizes
print-fuel
pub Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
reachable Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
resolve reorder span labels 2017-07-18 00:07:37 +05:30
span Point at path segment on module not found 2017-07-25 21:25:43 -07:00
suggestions Change some helps to suggestions 2017-07-17 10:03:37 +02:00
token Merge remote-tracking branch 'origin/master' into proc_macro_api 2017-07-05 08:42:13 -07:00
transmute compiletest: Support custom normalization rules. 2017-07-11 16:57:52 +08:00
type-check reorder span labels 2017-07-18 00:07:37 +05:30
cast-to-unsized-trait-object-suggestion.rs Move some tests from compile-fail to ui 2017-07-17 08:38:54 +02:00
cast-to-unsized-trait-object-suggestion.stderr Change some helps to suggestions 2017-07-17 10:03:37 +02:00
coercion-missing-tail-expected-type.rs Add test for #24889 2017-06-18 14:30:33 +02:00
coercion-missing-tail-expected-type.stderr report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00
deprecated-macro_escape-inner.rs
deprecated-macro_escape-inner.stderr
deprecated-macro_escape.rs
deprecated-macro_escape.stderr
deriving-meta-empty-trait-list.rs
deriving-meta-empty-trait-list.stderr
enum-size-variance.rs compiletest: Support custom normalization rules. 2017-07-11 16:57:52 +08:00
enum-size-variance.stderr compiletest: Support custom normalization rules. 2017-07-11 16:57:52 +08:00
explain.rs Modify --explain to handle hidden code (# ...) and indented code blocks. 2017-06-23 15:31:53 +08:00
explain.stdout Modify --explain to handle hidden code (# ...) and indented code blocks. 2017-06-23 15:31:53 +08:00
issue-19100.rs
issue-19100.stderr
issue-22644.rs syntax: Apply recovery for casts to type ascription 2017-07-07 11:53:12 +03:00
issue-22644.stderr syntax: Apply recovery for casts to type ascription 2017-07-07 11:53:12 +03:00
issue-26548.rs
issue-26548.stderr report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00
issue-33525.rs report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00
issue-33525.stderr report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00
issue-35675.rs Move resolve diagnostic instability to compile-fail 2017-07-17 10:16:08 +02:00
issue-35675.stderr Move resolve diagnostic instability to compile-fail 2017-07-17 10:16:08 +02:00
issue-42954.rs syntax: Apply recovery for casts to type ascription 2017-07-07 11:53:12 +03:00
issue-42954.stderr syntax: Apply recovery for casts to type ascription 2017-07-07 11:53:12 +03:00
loop-break-value-no-repeat.rs
loop-break-value-no-repeat.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
path-lookahead.rs
path-lookahead.stderr make lint on-by-default/implied-by messages appear only once 2017-06-26 16:10:06 -07:00
regions-fn-subtyping-return-static.rs
regions-fn-subtyping-return-static.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
resolve-error.stderr Change some helps to suggestions 2017-07-17 10:03:37 +02:00
shadowed-type-parameter.rs Move type parameter shadowing test to ui 2017-06-28 15:11:05 -07:00
shadowed-type-parameter.stderr report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00
static-lifetime.rs
static-lifetime.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
test-should-panic-attr.rs
test-should-panic-attr.stderr
update-all-references.sh
update-references.sh