Skip to content

Commit

Permalink
Rollup merge of rust-lang#79444 - sasurau4:test/move-const-ip, r=matklad
Browse files Browse the repository at this point in the history
Move const ip in ui test to unit test

Helps with rust-lang#76268

r? `@matklad`
  • Loading branch information
Dylan-DPC committed Nov 30, 2020
2 parents 0d49461 + d4ee2f6 commit de32e4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
6 changes: 6 additions & 0 deletions library/std/src/net/ip/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -936,4 +936,10 @@ fn ip_const() {

const IS_MULTICAST: bool = IP_ADDRESS.is_multicast();
assert!(!IS_MULTICAST);

const IS_IP_V4: bool = IP_ADDRESS.is_ipv4();
assert!(IS_IP_V4);

const IS_IP_V6: bool = IP_ADDRESS.is_ipv6();
assert!(!IS_IP_V6);
}
13 changes: 0 additions & 13 deletions src/test/ui/consts/std/net/ip.rs

This file was deleted.

0 comments on commit de32e4b

Please sign in to comment.