resolve: Address FIXME from the previous commit

Make the `is_import` flag in `ScopeSet` independent from namespace
Fix rebase
This commit is contained in:
Vadim Petrochenkov 2019-08-10 01:40:05 +03:00
parent 8cc8133973
commit 319f0debd4
4 changed files with 17 additions and 19 deletions

View file

@ -16,17 +16,17 @@ error: visibilities can only be restricted to ancestor modules
LL | pub(in std::vec) struct F;
| ^^^^^^^^
error[E0433]: failed to resolve: maybe a missing `extern crate nonexistent;`?
error[E0433]: failed to resolve: maybe a missing crate `nonexistent`?
--> $DIR/resolve-bad-visibility.rs:7:8
|
LL | pub(in nonexistent) struct G;
| ^^^^^^^^^^^ maybe a missing `extern crate nonexistent;`?
| ^^^^^^^^^^^ maybe a missing crate `nonexistent`?
error[E0433]: failed to resolve: maybe a missing `extern crate too_soon;`?
error[E0433]: failed to resolve: maybe a missing crate `too_soon`?
--> $DIR/resolve-bad-visibility.rs:8:8
|
LL | pub(in too_soon) struct H;
| ^^^^^^^^ maybe a missing `extern crate too_soon;`?
| ^^^^^^^^ maybe a missing crate `too_soon`?
error: aborting due to 5 previous errors