Skip to content

cannot resolve std::net::Ipv4Addr: std::cmp::PartialEq in scan-rules-0.2.0, Rust 1.16 beta #39825

Closed
@brson

Description

@brson
brian@ip-10-145-43-250:~/dev/rust-scan-rules⟫ git remote -v
origin  https://github.com/DanielKeep/rust-scan-rules (fetch)
origin  https://github.com/DanielKeep/rust-scan-rules (push)
brian@ip-10-145-43-250:~/dev/rust-scan-rules⟫ git log -1
commit 151b4d822c33dcb8a04d9fa55d1084c948e5b76d
Author: Daniel Keep <daniel.keep@gmail.com>
Date:   Mon Nov 7 16:27:19 2016 +1100

    chore: updated docs for release.
brian@ip-10-145-43-250:/mnt2/dev⟫ rustc +beta -Vv
rustc 1.16.0-beta.1 (5276ba72e 2017-01-31)
binary: rustc
commit-hash: 5276ba72e8fe13597200254447fce9cb3783c583
commit-date: 2017-01-31
host: x86_64-unknown-linux-gnu
release: 1.16.0-beta.1
LLVM version: 3.9
brian@ip-10-145-43-250:~/dev/rust-scan-rules⟫ cargo +beta test
   Compiling scan-rules v0.2.0 (file:///mnt2/dev/rust-scan-rules)
error[E0283]: type annotations required: cannot resolve `std::net::Ipv4Addr: std::cmp::PartialEq<_>`
   --> src/scanner/std/net.rs:225:31
    |
225 |                 Ok((v, n)) if v == $s.parse().unwrap() && n == $s.len()
    |                               ^^^^^^^^^^^^^^^^^^^^^^^^
...
244 |     check_ipv4!("0.0.0.0");
    |     ----------------------- in this macro invocation

warning: unused `#[macro_use]` import, #[warn(unused_imports)] on by default
  --> examples/runtime_scanners.rs:10:1
   |
10 | #[macro_use] extern crate scan_rules;
   | ^^^^^^^^^^^^

error: aborting due to previous error

error: Could not compile `scan-rules`.
Build failed, waiting for other jobs to finish...
error: build failed

Not on 1.15.

cc @DanielKeep

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions