<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/path.rs, branch 1.80.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.80.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.80.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-05-26T04:14:32+00:00</updated>
<entry>
<title>Auto merge of #125070 - tbu-:pr_set_extension_panic, r=jhpratt</title>
<updated>2024-05-26T04:14:32+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2024-05-26T04:14:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bd184cc3e1ee16c1d74444fa246dcfbade9a31d5'/>
<id>urn:sha1:bd184cc3e1ee16c1d74444fa246dcfbade9a31d5</id>
<content type='text'>
Panic if `PathBuf::set_extension` would add a path separator

This is likely never intended and potentially a security vulnerability if it happens.

I'd guess that it's mostly literal strings that are passed to this function in practice, so I'm guessing this doesn't break anyone.

CC #125060
</content>
</entry>
<entry>
<title>Small fixes to `std::path::absolute` docs</title>
<updated>2024-05-20T22:36:52+00:00</updated>
<author>
<name>Tobias Bucher</name>
<email>tobiasbucher5991@gmail.com</email>
</author>
<published>2024-05-20T22:36:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f6cf103da2d08c9c8598a83da1fc83391bcd1119'/>
<id>urn:sha1:f6cf103da2d08c9c8598a83da1fc83391bcd1119</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Panic if `PathBuf::set_extension` would add a path separator</title>
<updated>2024-05-13T13:08:34+00:00</updated>
<author>
<name>Tobias Bucher</name>
<email>tobiasbucher5991@gmail.com</email>
</author>
<published>2024-05-13T12:22:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=700b3ea61ba2a37876af0a5d2d2f991aba5c7000'/>
<id>urn:sha1:700b3ea61ba2a37876af0a5d2d2f991aba5c7000</id>
<content type='text'>
This is likely never intended and potentially a security vulnerability
if it happens.

I'd guess that it's mostly literal strings that are passed to this
function in practice, so I'm guessing this doesn't break anyone.

CC #125060
</content>
</entry>
<entry>
<title>Replace version placeholders for 1.79</title>
<updated>2024-05-02T01:01:51+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2024-04-28T13:28:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bd7d328807a8bb15732ebb764e1ea3df4fbe3fd1'/>
<id>urn:sha1:bd7d328807a8bb15732ebb764e1ea3df4fbe3fd1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>PathBuf: replace transmuting by accessor functions</title>
<updated>2024-04-26T16:09:09+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2024-04-26T15:55:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c47978a241ac1dd512b2ed7d146c1e1a71326dec'/>
<id>urn:sha1:c47978a241ac1dd512b2ed7d146c1e1a71326dec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stabilize `std::path::absolute`</title>
<updated>2024-04-24T14:35:02+00:00</updated>
<author>
<name>Chris Denton</name>
<email>chris@chrisdenton.dev</email>
</author>
<published>2024-04-16T12:51:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f56afa047748e2921f5ff4fe1f6217cd9a5aeeec'/>
<id>urn:sha1:f56afa047748e2921f5ff4fe1f6217cd9a5aeeec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #122201 - coolreader18:doc-clone_from, r=dtolnay</title>
<updated>2024-04-17T16:01:37+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-04-17T16:01:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=21deaed4a1747bc336c902a7a85084f76c345917'/>
<id>urn:sha1:21deaed4a1747bc336c902a7a85084f76c345917</id>
<content type='text'>
Document overrides of `clone_from()` in core/std

As mentioned in https://github.com/rust-lang/rust/pull/96979#discussion_r1379502413

Specifically, when an override doesn't just forward to an inner type, document the behavior and that it's preferred over simply assigning a clone of source. Also, change instances where the second parameter is "other" to "source".

I reused some of the wording over and over for similar impls, but I'm not sure that the wording is actually *good*. Would appreciate feedback about that.

Also, now some of these seem to provide pretty specific guarantees about behavior (e.g. will reuse the exact same allocation iff the len is the same), but I was basing it off of the docs for [`Box::clone_from`](https://doc.rust-lang.org/1.75.0/std/boxed/struct.Box.html#method.clone_from-1) - I'm not sure if providing those strong guarantees is actually good or not.
</content>
</entry>
<entry>
<title>Rework Path::ancestors documentation to remove unwraps</title>
<updated>2024-04-10T11:43:36+00:00</updated>
<author>
<name>Kriskras99</name>
<email>github@kriskras99.nl</email>
</author>
<published>2024-04-10T11:43:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6b0d3663c1be68a0f5a619c00e946b0754d7c3a8'/>
<id>urn:sha1:6b0d3663c1be68a0f5a619c00e946b0754d7c3a8</id>
<content type='text'>
If you take a quick glance at the documentation for Path::ancestors, the unwraps take the natural focus. Potentially indicating that ancestors might panic.
In the reworked version I've also moved the link with parent returning None and that the iterator will always yield &amp;self to before the yield examples.</content>
</entry>
<entry>
<title>Bring documentation of Path::to_path_buf in line with the rest of Path/PathBuf</title>
<updated>2024-04-10T11:21:26+00:00</updated>
<author>
<name>Kriskras99</name>
<email>github@kriskras99.nl</email>
</author>
<published>2024-04-10T11:21:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bc8ad6a41eb8ba30787cfae159f8d778fcb5b2e7'/>
<id>urn:sha1:bc8ad6a41eb8ba30787cfae159f8d778fcb5b2e7</id>
<content type='text'>
Changes the example from using the qualified path of PathBuf with an import. This is what's done in all other Path/PathBuf examples and makes the code look a bit cleaner.</content>
</entry>
<entry>
<title>Document overrides of `clone_from()`</title>
<updated>2024-03-08T18:27:24+00:00</updated>
<author>
<name>Noa</name>
<email>coolreader18@gmail.com</email>
</author>
<published>2024-03-08T18:27:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c0e913fdd7f35b197c6da198c25569fc63244b85'/>
<id>urn:sha1:c0e913fdd7f35b197c6da198c25569fc63244b85</id>
<content type='text'>
Specifically, when an override doesn't just forward to an inner type,
document the behavior and that it's preferred over simply assigning
a clone of source. Also, change instances where the second parameter is
"other" to "source".
</content>
</entry>
</feed>
