{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/15625","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/15625/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/15625/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/15625/events","html_url":"https://github.com/rust-lang/rust/issues/15625","id":37709607,"number":15625,"title":"assert_eq!() cannot be used on Path","user":{"login":"o11c","id":964689,"avatar_url":"https://avatars.githubusercontent.com/u/964689?v=3","gravatar_id":"","url":"https://api.github.com/users/o11c","html_url":"https://github.com/o11c","followers_url":"https://api.github.com/users/o11c/followers","following_url":"https://api.github.com/users/o11c/following{/other_user}","gists_url":"https://api.github.com/users/o11c/gists{/gist_id}","starred_url":"https://api.github.com/users/o11c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o11c/subscriptions","organizations_url":"https://api.github.com/users/o11c/orgs","repos_url":"https://api.github.com/users/o11c/repos","events_url":"https://api.github.com/users/o11c/events{/privacy}","received_events_url":"https://api.github.com/users/o11c/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-libs","name":"A-libs","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-07-12T01:19:14Z","updated_at":"2015-02-03T02:39:13Z","closed_at":null,"body":"Since `Path` isn't `Show`, it can't be used. This would be useful, for when you're actually comparing some container of `Path`, such as `Option<Path>` or `Vec<Path>`.\r\n\r\nAs an alternative, I tried `.map(|p| p.display())` on both sides, but `Display` doesn't impl `PartialEq`, so it can't be used either. That means either `.as_str().unwrap()`, or just give up on the nicely printed failure and use plain `assert!`\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/72582214","html_url":"https://github.com/rust-lang/rust/issues/15625#issuecomment-72582214","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/15625","id":72582214,"user":{"login":"frewsxcv","id":416575,"avatar_url":"https://avatars.githubusercontent.com/u/416575?v=3","gravatar_id":"","url":"https://api.github.com/users/frewsxcv","html_url":"https://github.com/frewsxcv","followers_url":"https://api.github.com/users/frewsxcv/followers","following_url":"https://api.github.com/users/frewsxcv/following{/other_user}","gists_url":"https://api.github.com/users/frewsxcv/gists{/gist_id}","starred_url":"https://api.github.com/users/frewsxcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frewsxcv/subscriptions","organizations_url":"https://api.github.com/users/frewsxcv/orgs","repos_url":"https://api.github.com/users/frewsxcv/repos","events_url":"https://api.github.com/users/frewsxcv/events{/privacy}","received_events_url":"https://api.github.com/users/frewsxcv/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T02:39:13Z","updated_at":"2015-02-03T02:39:13Z","body":"`Show` was recently deprecated in favor of `Debug`. [According to the current documentation](http://doc.rust-lang.org/std/path/windows/struct.Path.html#method.fmt), `Path` implements `Debug`.\r\n\r\n![screen shot 2015-02-02 at 9 38 14 pm](https://cloud.githubusercontent.com/assets/416575/6013518/cf197b0a-ab23-11e4-84f8-4e5f82fe064c.png)\r\n\r\nThis can probably be closed."}}