[GH-ISSUE #66] rustc version 1.11.0 gives: private type in public interface [E0446] #339

Closed
opened 2026-03-15 22:03:15 +03:00 by kerem · 1 comment
Owner

Originally created by @dckc on GitHub (Nov 3, 2016).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/66

Should building with rustc v 1.11.0 work? If anything newer than 1.0 is needed, I'd appreciate a note in the README.

I'm struggling:

$ git log -n1
commit 764255a8e2c07105f892a8a2498186d404678ddb
Merge: f74d52c 3520d18
Author: Benjamin Fry <benjaminfry@me.com>
Date:   Thu Nov 3 00:17:52 2016 -0700

$ rustc --version
rustc 1.11.0

$ cargo build
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading futures v0.1.3
 Downloading rusqlite v0.7.3
 ...
   Compiling mio v0.5.1
   Compiling tokio-core v0.1.0
   Compiling docopt v0.6.86
src/client/client_future.rs:61:29: 61:41 error: private type in public interface [E0446]
src/client/client_future.rs:61              stream_handle: StreamHandle,
                                                           ^~~~~~~~~~~~
src/client/client_future.rs:61:29: 61:41 help: run `rustc --explain E0446` to see a detailed explanation
src/client/client_future.rs:80:38: 80:50 error: private type in public interface [E0446]
src/client/client_future.rs:80                       stream_handle: StreamHandle,
                                                                    ^~~~~~~~~~~~
src/client/client_future.rs:80:38: 80:50 help: run `rustc --explain E0446` to see a detailed explanation
error: aborting due to 2 previous errors
error: Could not compile `trust-dns`.

To learn more, run the command again with --verbose.
Originally created by @dckc on GitHub (Nov 3, 2016). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/66 Should building with rustc v 1.11.0 work? If anything newer than 1.0 is needed, I'd appreciate a note in the README. I'm struggling: ``` $ git log -n1 commit 764255a8e2c07105f892a8a2498186d404678ddb Merge: f74d52c 3520d18 Author: Benjamin Fry <benjaminfry@me.com> Date: Thu Nov 3 00:17:52 2016 -0700 $ rustc --version rustc 1.11.0 $ cargo build Updating registry `https://github.com/rust-lang/crates.io-index` Downloading futures v0.1.3 Downloading rusqlite v0.7.3 ... Compiling mio v0.5.1 Compiling tokio-core v0.1.0 Compiling docopt v0.6.86 src/client/client_future.rs:61:29: 61:41 error: private type in public interface [E0446] src/client/client_future.rs:61 stream_handle: StreamHandle, ^~~~~~~~~~~~ src/client/client_future.rs:61:29: 61:41 help: run `rustc --explain E0446` to see a detailed explanation src/client/client_future.rs:80:38: 80:50 error: private type in public interface [E0446] src/client/client_future.rs:80 stream_handle: StreamHandle, ^~~~~~~~~~~~ src/client/client_future.rs:80:38: 80:50 help: run `rustc --explain E0446` to see a detailed explanation error: aborting due to 2 previous errors error: Could not compile `trust-dns`. To learn more, run the command again with --verbose. ```
kerem closed this issue 2026-03-15 22:03:20 +03:00
Author
Owner

@bluejekyll commented on GitHub (Nov 4, 2016):

Thanks for the note.

I haven't seen this myself. I'm currently building locally against nightly and stable, where stable == 1.12.1. This is indeed an issue in 1.11, but not in 1.12. I'll post a patch tonight.

<!-- gh-comment-id:258329292 --> @bluejekyll commented on GitHub (Nov 4, 2016): Thanks for the note. I haven't seen this myself. I'm currently building locally against nightly and stable, where stable == 1.12.1. This is indeed an issue in 1.11, but not in 1.12. I'll post a patch tonight.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#339
No description provided.