about summary refs log tree commit diff
path: root/src/test/rustdoc/codeblock-title.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-06-15 12:01:13 +0200
committerGitHub <noreply@github.com>2020-06-15 12:01:13 +0200
commit202499fb4377ccf27893211c2fa10a1e948bc1eb (patch)
tree7cbfada01c73e64e87db2800119da486574695bb /src/test/rustdoc/codeblock-title.rs
parentfb75d4a74615d0c28d3ab7e3cf97db2bf8cf677f (diff)
parent204c236ad5b632294d8794e729326be8053ab2aa (diff)
downloadrust-202499fb4377ccf27893211c2fa10a1e948bc1eb.tar.gz
rust-202499fb4377ccf27893211c2fa10a1e948bc1eb.zip
Rollup merge of #73304 - dtolnay:socketeq, r=Mark-Simulacrum
Revert heterogeneous SocketAddr PartialEq impls

Originally added in #72239.

These lead to inference regressions (mostly in tests) in code that looks like:

```rust
let socket = SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 8080);
assert_eq!(socket, "127.0.0.1:8080".parse().unwrap());
```

That compiles as of stable 1.44.0 but fails in beta with:

```console
error[E0284]: type annotations needed
 --> src/main.rs:3:41
  |
3 |     assert_eq!(socket, "127.0.0.1:8080".parse().unwrap());
  |                                         ^^^^^ cannot infer type for type parameter `F` declared on the associated function `parse`
  |
  = note: cannot satisfy `<_ as std::str::FromStr>::Err == _`
help: consider specifying the type argument in the method call
  |
3 |     assert_eq!(socket, "127.0.0.1:8080".parse::<F>().unwrap());
  |
```

Closes #73242.
Diffstat (limited to 'src/test/rustdoc/codeblock-title.rs')
0 files changed, 0 insertions, 0 deletions