Skip to content

Commit 557b9e7

Browse files
committed
auto merge of #14879 : Ryman/rust/resolve_super_hint_cut, r=alexcrichton
2 parents 4416b32 + 3791a85 commit 557b9e7

18 files changed

+250
-195
lines changed

src/librustc/middle/resolve.rs

Lines changed: 177 additions & 135 deletions
Large diffs are not rendered by default.

src/test/compile-fail-fulldeps/phase-syntax-doesnt-resolve.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ extern crate macro_crate_test;
1919

2020
fn main() {
2121
macro_crate_test::foo();
22-
//~^ ERROR unresolved name
23-
//~^^ ERROR use of undeclared module `macro_crate_test`
24-
//~^^^ ERROR unresolved name `macro_crate_test::foo`.
22+
//~^ ERROR failed to resolve. Use of undeclared module `macro_crate_test`
23+
//~^^ ERROR unresolved name `macro_crate_test::foo`.
2524
}

src/test/compile-fail/import-from-missing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -8,8 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:failed to resolve import
1211
use spam::{ham, eggs};
12+
//~^ ERROR unresolved import `spam::eggs`. There is no `eggs` in `spam`
1313

1414
mod spam {
1515
pub fn ham() { }

src/test/compile-fail/import.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -8,9 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:failed to resolve import
1211
use zed::bar;
1312
use zed::baz;
13+
//~^ ERROR unresolved import `zed::baz`. There is no `baz` in `zed`
1414

1515

1616
mod zed {

src/test/compile-fail/import2.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -8,8 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use baz::zed::bar; //~ ERROR unresolved import
12-
//~^ ERROR failed to resolve import
11+
use baz::zed::bar;
12+
//~^ ERROR unresolved import `baz::zed::bar`. Could not find `zed` in `baz`.
1313

1414

1515
mod baz {}

src/test/compile-fail/issue-12612.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ use foo::bar;
1616

1717
mod test {
1818
use bar::foo;
19-
//~^ ERROR: unresolved import
20-
//~^^ ERROR: failed to resolve import
19+
//~^ ERROR unresolved import `bar::foo`. Maybe a missing `extern crate bar`?
2120
}
2221

2322
fn main() {}

src/test/compile-fail/issue-13404.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
use a::f;
1212
use b::f;
13-
//~^ ERROR: unresolved import
14-
//~^^ ERROR: failed to resolve import
13+
//~^ ERROR: unresolved import `b::f`. There is no `f` in `b`
1514

1615
mod a { pub fn f() {} }
1716
mod b { }

src/test/compile-fail/issue-1697.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -12,8 +12,6 @@
1212

1313
#![feature(globs)]
1414

15-
use unresolved::*; //~ ERROR unresolved import. maybe a missing
16-
//~^ ERROR failed to resolve import
15+
use unresolved::*; //~ ERROR unresolved import `unresolved::*`. Maybe a missing `extern crate unres
1716

18-
fn main() {
19-
}
17+
fn main() {}

src/test/compile-fail/issue-2123.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -8,11 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use x = m::f; //~ ERROR failed to resolve import
12-
//~^ unresolved import: there is no `f` in `m`
11+
use x = m::f; //~ ERROR unresolved import `m::f`. There is no `f` in `m`
1312

14-
mod m {
15-
}
13+
mod m {}
1614

17-
fn main() {
18-
}
15+
fn main() {}

src/test/compile-fail/issue-2937.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -8,11 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use x = m::f; //~ ERROR failed to resolve import
12-
//~^ ERROR unresolved import: there is no `f` in `m`
11+
use x = m::f; //~ ERROR unresolved import `m::f`. There is no `f` in `m`
1312

14-
mod m {
15-
}
13+
mod m {}
1614

17-
fn main() {
18-
}
15+
fn main() {}

0 commit comments

Comments
 (0)