]> git.proxmox.com Git - cargo.git/commit
Auto merge of #2737 - aidanhs:aphs-hash-url-serialization, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 24 May 2016 18:49:48 +0000 (11:49 -0700)
committerbors <bors@rust-lang.org>
Tue, 24 May 2016 18:49:48 +0000 (11:49 -0700)
commit1ed072790bad2f156e6bffc5f72da0b8c1fda49c
treea8b219ca1e96790244172b187faa4d585d271fed
parentca743f3118532e7fc5f74938801ebac369665c89
parentb691f1e4c5dd7449c3ab3cf1da3a061a2f3d5599
Auto merge of #2737 - aidanhs:aphs-hash-url-serialization, r=alexcrichton

Hash url serialization to ensure hash stability

`as_str` is documented to return the serialization of a url (http://servo.github.io/rust-url/url/struct.Url.html#method.as_str).
The serialization of a url has a spec (https://url.spec.whatwg.org/#url-serializing).

Hashing the serialization of a url insulates cargo against possible decisions to alter how rust-url does hashing (I've observed it happening twice). Note that rust-url happens to do this internally (but is not guaranteed to in future) and so this change doesn't actually have any effect on hash values.

r? @alexcrichton

Closes #1710