about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorCorentin Henry <corentinhenry@gmail.com>2018-11-19 09:33:02 -0800
committerCorentin Henry <corentinhenry@gmail.com>2019-04-20 11:19:10 +0200
commit1f0aa4043b6051602f016b61a393ef5981b5b831 (patch)
treebab6ad14c648c432c09abd386fde1ecda6b4e8e5 /src/test/ui/thinlto
parent5aea18411ed6baf471af0799f8926f105009dfcc (diff)
downloadrust-1f0aa4043b6051602f016b61a393ef5981b5b831.tar.gz
rust-1f0aa4043b6051602f016b61a393ef5981b5b831.zip
std::net: add Ipv6Addr::is_unicast_link_local_strict()
RFC 4291 is a little unclear about what is a unicast link local address.
According to section 2.4, the entire fe80::/10 range is reserved for
these addresses, but section 2.5.3 defines a stricter format for such
addresses.

After a discussion[0] is has been decided to add a different method for
each definition, so this commit:

  - renames is_unicast_link_local() into is_unicast_link_local_strict()
  - relaxed the check in is_unicast_link_local()

[0]: https://github.com/rust-lang/rust/issues/27709#issuecomment-400370706
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions