about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-08-08 10:42:04 +0000
committerbors <bors@rust-lang.org>2018-08-08 10:42:04 +0000
commitebe8df41d70d8763e0a15aefe078b035d3519214 (patch)
treed5bd5bac86ca88d7299ec6c6bfb125a10828d43f /src/liballoc_system
parentffb09dfb3a9b252e26cd4f6570e9ff1b8a742edc (diff)
parentc0041f4a17b587cf47f0ecc481afb29a4ae28716 (diff)
downloadrust-ebe8df41d70d8763e0a15aefe078b035d3519214.tar.gz
rust-ebe8df41d70d8763e0a15aefe078b035d3519214.zip
Auto merge of #52872 - faern:use-modern-alignment-libc, r=TimNN
Make IpvXAddr::new const fns and the well known addresses associated constants

Implements/fixes https://github.com/rust-lang/rust/issues/44582

I just got a PR towards libc (https://github.com/rust-lang/libc/pull/1044) merged. With the new feature added in that PR it is now possible to create `in6_addr` instances as consts. This enables us to finally make the constructors of the IP structs const fns and to make the localhost/unspecified addresses associated constants, as agreed in the above mentioned tracking issue.

I also added a BROADCAST constant. Personally this is the well known address I tend to need the most often.
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions