Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/109343.rs: fixed with errors #1590

Merged
merged 1 commit into from
May 20, 2023
Merged

ices/109343.rs: fixed with errors #1590

merged 1 commit into from
May 20, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#109343

#![crate_type = "lib"]
extern crate f;

pub use inner::f;

/// [mod@std::env] [g]
pub use f as g;


fn main() {}
=== stdout ===
=== stderr ===
error[E0463]: can't find crate for `f`
 --> /home/runner/work/glacier/glacier/ices/109343.rs:2:1
  |
2 | extern crate f;
  | ^^^^^^^^^^^^^^^ can't find crate

error[E0432]: unresolved import `inner`
 --> /home/runner/work/glacier/glacier/ices/109343.rs:4:9
  |
4 | pub use inner::f;
  |         ^^^^^ use of undeclared crate or module `inner`

error: extern crate `f` is private, and cannot be re-exported (error E0365), consider declaring with `pub`
 --> /home/runner/work/glacier/glacier/ices/109343.rs:7:9
  |
7 | pub use f as g;
  |         ^^^^^^
  |
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
  = note: `#[deny(pub_use_of_private_extern_crate)]` on by default

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0432, E0463.
For more information about an error, try `rustc --explain E0432`.
==============

=== stdout ===
=== stderr ===
error[E0463]: can't find crate for `f`
 --> /home/runner/work/glacier/glacier/ices/109343.rs:2:1
  |
2 | extern crate f;
  | ^^^^^^^^^^^^^^^ can't find crate

error[E0432]: unresolved import `inner`
 --> /home/runner/work/glacier/glacier/ices/109343.rs:4:9
  |
4 | pub use inner::f;
  |         ^^^^^ use of undeclared crate or module `inner`

error: extern crate `f` is private, and cannot be re-exported (error E0365), consider declaring with `pub`
 --> /home/runner/work/glacier/glacier/ices/109343.rs:7:9
  |
7 | pub use f as g;
  |         ^^^^^^
  |
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #34537 <rust-lang/rust#34537>
  = note: `#[deny(pub_use_of_private_extern_crate)]` on by default

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0432, E0463.
For more information about an error, try `rustc --explain E0432`.
==============
@JohnTitor JohnTitor merged commit 70fb5a2 into master May 20, 2023
@JohnTitor JohnTitor deleted the autofix/ices/109343.rs branch May 20, 2023 05:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants