Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/imports/issue-13404.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
152 B
Rust
Raw Normal View History

rustc: Don't succeed on shadowed nonexistent import Previously resolve was checking the "import resolution" for whether an import had succeeded or not, but this was the same structure filled in by a previous import if a name is shadowed. Instead, this alters resolve to consult the local resolve state (as opposed to the shared one) to test whether an import succeeded or not. Closes #13404
2014-04-08 15:03:29 -07:00
use a::f;
Updated E0432 to new format
2016-08-22 13:57:10 +08:00
use b::f; //~ ERROR: unresolved import `b::f` [E0432]
//~^ no `f` in `b`
rustc: Don't succeed on shadowed nonexistent import Previously resolve was checking the "import resolution" for whether an import had succeeded or not, but this was the same structure filled in by a previous import if a name is shadowed. Instead, this alters resolve to consult the local resolve state (as opposed to the shared one) to test whether an import succeeded or not. Closes #13404
2014-04-08 15:03:29 -07:00
mod a { pub fn f() {} }
mod b { }
fn main() {
f();
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4356ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API