Skip to content

Rename the notbsd module to linux_like#1389

Merged
bors merged 1 commit into
rust-lang:masterfrom
gnzlbg:ref_linux2
Jun 4, 2019
Merged

Rename the notbsd module to linux_like#1389
bors merged 1 commit into
rust-lang:masterfrom
gnzlbg:ref_linux2

Conversation

@gnzlbg

@gnzlbg gnzlbg commented Jun 3, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@rust-highfive

Copy link
Copy Markdown

@gnzlbg: no appropriate reviewer found, use r? to override

@gnzlbg

gnzlbg commented Jun 4, 2019

Copy link
Copy Markdown
Contributor Author

@bors: r+

@bors

bors commented Jun 4, 2019

Copy link
Copy Markdown
Contributor

📌 Commit 8f098a3 has been approved by gnzlbg

@bors

bors commented Jun 4, 2019

Copy link
Copy Markdown
Contributor

⌛ Testing commit 8f098a3 with merge cf78b5d...

bors added a commit that referenced this pull request Jun 4, 2019
Rename the notbsd module to linux_like
@bors

bors commented Jun 4, 2019

Copy link
Copy Markdown
Contributor

💔 Test failed - checks-travis

@gnzlbg

gnzlbg commented Jun 4, 2019

Copy link
Copy Markdown
Contributor Author

@bors: retry

@bors

bors commented Jun 4, 2019

Copy link
Copy Markdown
Contributor

⌛ Testing commit 8f098a3 with merge ce7e3a7...

bors added a commit that referenced this pull request Jun 4, 2019
Rename the notbsd module to linux_like
@bors

bors commented Jun 4, 2019

Copy link
Copy Markdown
Contributor

☀️ Test successful - checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-travis, status-appveyor
Approved by: gnzlbg
Pushing ce7e3a7 to master...

@kleimkuhler

kleimkuhler commented Sep 22, 2019

Copy link
Copy Markdown

@gnzlbg Hey I'm running into an error where notbsd::... is expected, but linux_like::... is found. I've replicated it in playground.

Any idea if this is an error in trying to make a SocketAddr or some version conflict?

Edit: I'm trying to make the SocketAddr here

pub struct SocketAddr {
    addr: libc::sockaddr_un,
    len: libc::socklen_t,
}

Edit 2: Sorry for the ping on this. I realize now I can't even make this type because the fields are private

@gnzlbg

gnzlbg commented Sep 22, 2019

Copy link
Copy Markdown
Contributor Author

@kleimkuhler you should open an issue in rust-lang/rust since that looks like a bug in libstd.

Essentially, the types exposed by libc are not the same types exposed by libstd. Often, libstd has newtypes for them (e.g. pthread_t), but sometimes someone made a bug somewhere.

@gnzlbg

gnzlbg commented Sep 22, 2019

Copy link
Copy Markdown
Contributor Author

Looking at the source, it appears that libstd does properly have a newtype here, the fields of that type are private, so you should never see a type error here, but a privacy error instead.

I think this is worth reporting as an error to the Rust compiler. The error message is confusing.

@gnzlbg

gnzlbg commented Sep 22, 2019

Copy link
Copy Markdown
Contributor Author

I've reported it here: rust-lang/rust#64684

@kleimkuhler

Copy link
Copy Markdown

@gnzlbg Oh okay thanks for the explanation on that--and reporting it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants