Petr Zemek
7add53e47e
Fix a typo in path.rs docs
...
The name of the variable used in the example is `path`, not `os_str`.
2017-03-19 07:02:20 +01:00
bors
a559452b05
Auto merge of #40598 - frewsxcv:rollup, r=frewsxcv
...
Rollup of 23 pull requests
- Successful merges: #40387 , #40433 , #40452 , #40456 , #40457 , #40458 , #40463 , #40466 , #40467 , #40495 , #40496 , #40497 , #40499 , #40500 , #40503 , #40505 , #40512 , #40514 , #40517 , #40520 , #40536 , #40545 , #40586
- Failed merges:
2017-03-17 17:26:52 +00:00
Corey Farwell
69717170a4
Rollup merge of #40456 - frewsxcv:frewsxcv-docs-function-parens, r=GuillaumeGomez
...
Remove function invokation parens from documentation links.
This was never established as a convention we should follow in the 'More
API Documentation Conventions' RFC:
https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md
2017-03-17 08:48:51 -04:00
Clar Charr
0739ecec61
Removes Default for Box<Path>.
2017-03-15 11:36:13 -04:00
Corey Farwell
e7b0f2badf
Remove function invokation parens from documentation links.
...
This was never established as a convention we should follow in the 'More
API Documentation Conventions' RFC:
https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md
2017-03-13 21:43:18 -04:00
Clar Charr
560944b982
Add From<Box<..>> implementations.
2017-03-10 14:57:57 -05:00
Clar Charr
963843b1b3
Conversions between CStr/OsStr/Path and boxes.
2017-02-14 14:18:43 -05:00
Corey Farwell
4cde461bb0
Rollup merge of #38764 - Aaronepower:master, r=aturon
...
Added Default impl to PathBuf
2017-02-07 22:54:19 -05:00
bors
b4c0207148
Auto merge of #38935 - redox-os:fix_path_redox, r=brson
...
Fix is_absolute on Redox
Due to not using prefixes on Redox, yet, it must be added as an exception to Path::is_absolute.
2017-01-14 11:03:25 +00:00
Jeremy Soller
ca2ade1d36
Fix is_absolute on Redox
2017-01-13 14:48:01 -07:00
Guillaume Gomez
54535c59a4
Rollup merge of #38946 - GuillaumeGomez:path_doc, r=frewsxcv
...
Add missing links and examples for path modules and structs
r? @frewsxcv
2017-01-13 10:42:28 +01:00
Guillaume Gomez
28d1ac3191
Add missing links and examples for path modules and structs
2017-01-11 23:26:27 +01:00
Corey Farwell
4794f95683
Expand {Path,OsStr}::{to_str,to_string_lossy} doc examples.
2017-01-05 09:52:14 -05:00
Aaron Power
108293d4e9
Added Default impl to PathBuf
2017-01-01 20:15:19 +00:00
Guillaume Gomez
60d1660748
Add Component examples
2016-12-02 20:16:12 -08:00
bors
c7ddb8946b
Auto merge of #38019 - sourcefrog:doc-separator, r=frewsxcv
...
Clearer description of std::path::MAIN_SEPARATOR.
2016-11-27 20:22:44 -06:00
Martin Pool
591c134456
Clearer description of std::path::MAIN_SEPARATOR.
2016-11-26 09:24:48 -08:00
Corey Farwell
af1aa1bccf
Update top-level path doc examples to show results.
2016-11-14 15:54:40 -05:00
Corey Farwell
f53d062d42
Minor rewriting of std::path::Path::push
doc example.
2016-11-13 12:58:55 -05:00
Alex Crichton
727f1d3f16
Rollup merge of #37585 - leodasvacas:change_into_to_from, r=alexcrichton
...
Change `Into<Vec<u8>> for String` and `Into<OsString> for PathBuf` to From
Fixes #37561 . First contribution, happy with any and all feedback!
2016-11-05 10:50:25 -07:00
leonardo.yvens
3e4bd88438
Change Into<Vec<u8>> for String and Into<OsString> for PathBuf to From impls
2016-11-04 15:54:08 -02:00
Guillaume Gomez
7e805eae8e
Rollup merge of #37316 - ollie27:docs_links, r=GuillaumeGomez
...
Fix a few links in the docs
r? @steveklabnik
2016-11-01 16:15:52 +01:00
Duncan
27dbfffc71
Link to PathBuf from the Path docs
2016-10-24 16:34:37 +13:00
Oliver Middleton
8faa503a6b
Fix a few links in the docs
2016-10-21 00:49:47 +01:00
bors
7a26aeca77
Auto merge of #36815 - alexcrichton:stabilize-1.13, r=aturon
...
std: Stabilize and deprecate APIs for 1.13
This commit is intended to be backported to the 1.13 branch, and works with the
following APIs:
Stabilized
* `i32::checked_abs`
* `i32::wrapping_abs`
* `i32::overflowing_abs`
* `RefCell::try_borrow`
* `RefCell::try_borrow_mut`
Deprecated
* `BinaryHeap::push_pop`
* `BinaryHeap::replace`
* `SipHash13`
* `SipHash24`
* `SipHasher` - use `DefaultHasher` instead in the `std::collections::hash_map`
module
Closes #28147
Closes #34767
Closes #35057
Closes #35070
2016-10-03 11:00:03 -07:00
Alex Crichton
10c3134da0
std: Stabilize and deprecate APIs for 1.13
...
This commit is intended to be backported to the 1.13 branch, and works with the
following APIs:
Stabilized
* `i32::checked_abs`
* `i32::wrapping_abs`
* `i32::overflowing_abs`
* `RefCell::try_borrow`
* `RefCell::try_borrow_mut`
* `DefaultHasher`
* `DefaultHasher::new`
* `DefaultHasher::default`
Deprecated
* `BinaryHeap::push_pop`
* `BinaryHeap::replace`
* `SipHash13`
* `SipHash24`
* `SipHasher` - use `DefaultHasher` instead in the `std::collections::hash_map`
module
Closes #28147
Closes #34767
Closes #35057
Closes #35070
2016-10-03 10:34:34 -07:00
Brian Anderson
e6457bb676
std: Move platform specific path code into sys
2016-10-01 19:28:17 +00:00
Guillaume Gomez
a221ad06f2
Rollup merge of #36314 - tshepang:not-needed, r=GuillaumeGomez
...
doc: we got coercion going on here, so no need to be this explicit
2016-09-10 15:57:50 +02:00
Tshepang Lekhonkhobe
b99c5cf109
doc: we got coercion going on here, so no need to be this explicit
2016-09-07 04:15:56 +02:00
Vadim Petrochenkov
e05e74ac83
Replace _, _
with ..
2016-09-04 12:30:33 +03:00
Jonathan Turner
4bc5bcd812
Rollup merge of #35786 - GuillaumeGomez:paths_doc, r=steveklabnik
...
Improve Path and PathBuf docs
r? @steveklabnik
2016-08-31 13:53:33 -07:00
Guillaume Gomez
96e3103cfe
Improve Path and PathBuf docs
2016-08-31 17:53:01 +02:00
Corey Farwell
268b3f5818
Implement Debug
for std::path::Iter
.
2016-08-30 19:57:20 -04:00
Corey Farwell
f48d3859bc
Implement Debug
for std::path::Components
.
2016-08-30 12:40:44 -04:00
Jeffrey Seyfried
9a2c8783d9
Use #[prelude_import]
in libstd
.
2016-08-24 22:12:48 +00:00
Steven Allen
de91872a33
Add a FusedIterator trait.
...
This trait can be used to avoid the overhead of a fuse wrapper when an iterator
is already well-behaved.
Conforming to: RFC 1581
Closes : #35602
2016-08-18 12:16:29 -04:00
ggomez
0d78f6b40f
Fix std::path::Path::file_name()
doc
2016-07-06 01:26:24 +02:00
bors
acfa113c12
Auto merge of #34590 - pwlandoll:master, r=apasel422
...
Issue #34076 : Removing reference to removed path.prefix() function
In the documentation for `std::path::Path`, there is a [reference](https://doc.rust-lang.org/std/path/struct.Path.html#method.is_absolute ) to the `path.prefix()` function which has since been removed. The offending reference is now also removed.
First pull request, feedback welcome!
r? @steveklabnik
2016-07-04 05:03:04 -07:00
Peter Landoll
acc8ec0d8d
Issue #34076 : Removing reference to removed path.prefix() function
2016-06-30 18:34:12 -04:00
Steve Klabnik
9ad64e41c5
remove unneeded allow flag
...
There isn't anything deprecated being used in this function.
2016-06-30 17:06:52 -04:00
Guillaume Gomez
f8453a1d17
Rollup merge of #34475 - frewsxcv:path-component, r=GuillaumeGomez
...
Expand `std::path::Component` documentation.
Indicate how it gets created and add an example.
2016-06-28 16:05:15 +02:00
Corey Farwell
f1d600c6f8
Expand std::path::Component
documentation.
...
Indicate how it gets created and add an example.
2016-06-26 20:22:12 -04:00
bors
15e8a67c47
Auto merge of #34469 - frewsxcv:path-components, r=GuillaumeGomez
...
Indicate how the `std::path::Components` struct is created.
None
2016-06-25 22:06:35 -07:00
Corey Farwell
f300fafccd
Indicate how the std::path::Components
struct is created.
2016-06-25 10:05:01 -04:00
Corey Farwell
c55f0922aa
Add hyperlinks to std::fs
functions from std::path
.
2016-06-25 09:26:41 -04:00
jethrogb
0fa0a6b679
Fix Windows UNC paths in std::path docs
2016-04-10 14:51:23 -07:00
Alex Crichton
b53764c73b
std: Clean out deprecated APIs
...
Removes all unstable and deprecated APIs prior to the 1.8 release. All APIs that
are deprecated in the 1.8 release are sticking around for the rest of this
cycle.
Some notable changes are:
* The `dynamic_lib` module was moved into `rustc_back` as the compiler still
relies on a few bits and pieces.
* The `DebugTuple` formatter now special-cases an empty struct name with only
one field to append a trailing comma.
2016-03-12 12:31:13 -08:00
Manish Goregaokar
3c9a26853c
fixup #31878
2016-02-26 17:05:46 +05:30
Corey Farwell
c82be2f4cb
Prefer 'match' pattern guard over conditional within body.
2016-02-24 22:50:23 -05:00
Corey Farwell
8adc3f74f5
Prefer slice::get
over length check with indexing.
2016-02-24 22:34:23 -05:00