rust/src/libserialize
bors 79dd393a4f Auto merge of #23229 - aturon:stab-path, r=alexcrichton
This commit stabilizes essentially all of the new `std::path` API. The
API itself is changed in a couple of ways (which brings it in closer
alignment with the RFC):

* `.` components are now normalized away, unless they appear at the
  start of a path. This in turn effects the semantics of e.g. asking for
  the file name of `foo/` or `foo/.`, both of which yield `Some("foo")`
  now. This semantics is what the original RFC specified, and is also
  desirable given early experience rolling out the new API.

* The `parent` method is now `without_file` and succeeds if, and only
  if, `file_name` is `Some(_)`. That means, in particular, that it fails
  for a path like `foo/../`. This change affects `pop` as well.

In addition, the `old_path` module is now deprecated.

[breaking-change]

r? @alexcrichton
2015-03-13 01:00:02 +00:00
..
collection_impls.rs Register new snapshots 2015-02-20 22:17:17 -08:00
hex.rs Example -> Examples 2015-03-11 21:11:40 -04:00
json.rs doc: Fix extraneous as_slice()'s in docstrings 2015-03-09 07:54:19 -07:00
lib.rs Stabilize std::path 2015-03-12 16:38:58 -07:00
serialize.rs Stabilize std::path 2015-03-12 16:38:58 -07:00