mozilla/rust — pull request #8909 by lkuper (2013-09-01 06:08:08+00:00)
Title: Refactor std::path to use default methods (cc: #3227)

Parts I'm unsure about and would like a reviewer to look at are:

* `pub trait GenericPath : Clone + Eq + ToStr` -- is this the done thing? I've never done trait inheritance before, let alone from multiple traits, but it seemed to be necessary to be able to call all the methods we have to be able to call on `self`.

* changing the argument of `components` from `self` to `&self`, and having it return `self.components.clone()` instead of `self.components`; this was necessary to avoid move errors, but I'm not sure if it's the right thing. (The default methods impls now all have to call `self.components()` instead of just referencing the field `self.components`.)