diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2015-01-06 10:16:49 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2015-01-06 14:20:48 +1300 |
| commit | e0684e876954ad5a713e6f985570162cedcae8df (patch) | |
| tree | d6f5720dca6438855b491cf1fb0959c78a38b6c2 /src/libstd/path | |
| parent | 48f50e1e98691d74427e23e82694f528b3fb4d56 (diff) | |
| download | rust-e0684e876954ad5a713e6f985570162cedcae8df.tar.gz rust-e0684e876954ad5a713e6f985570162cedcae8df.zip | |
Fallout
Diffstat (limited to 'src/libstd/path')
| -rw-r--r-- | src/libstd/path/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/path/posix.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs index bf9ffbffe7d..4f37e8a978a 100644 --- a/src/libstd/path/mod.rs +++ b/src/libstd/path/mod.rs @@ -896,7 +896,7 @@ impl BytesContainer for CString { } } -impl<'a, Sized? T: BytesContainer> BytesContainer for &'a T { +impl<'a, T: ?Sized + BytesContainer> BytesContainer for &'a T { #[inline] fn container_as_bytes(&self) -> &[u8] { (**self).container_as_bytes() diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs index ae82e201cb8..777315b3ed6 100644 --- a/src/libstd/path/posix.rs +++ b/src/libstd/path/posix.rs @@ -344,7 +344,7 @@ impl Path { /// Returns a normalized byte vector representation of a path, by removing all empty /// components, and unnecessary . and .. components. - fn normalize<Sized? V: AsSlice<u8>>(v: &V) -> Vec<u8> { + fn normalize<V: ?Sized + AsSlice<u8>>(v: &V) -> Vec<u8> { // borrowck is being very picky let val = { let is_abs = !v.as_slice().is_empty() && v.as_slice()[0] == SEP_BYTE; |
