diff options
| author | bors <bors@rust-lang.org> | 2015-08-16 05:10:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-08-16 05:10:23 +0000 |
| commit | 9165a4e2dcaaa878a33379c6ff097c68f0ca0485 (patch) | |
| tree | 26f976828c10dbfb3e895569bfa434c6bc6e650b /src/libstd/path.rs | |
| parent | fc7efab3ab48e119e1a59281c26e666634ad1224 (diff) | |
| parent | 8ef1e3b77f0f0c365c6c11ebc5095997c8f0cd15 (diff) | |
| download | rust-9165a4e2dcaaa878a33379c6ff097c68f0ca0485.tar.gz rust-9165a4e2dcaaa878a33379c6ff097c68f0ca0485.zip | |
Auto merge of #27818 - alexcrichton:tag-all-the-issues, r=aturon
This commit turns `#[unstable]` attributes missing an `issue` annotation into a hard error. This will require the libs team to ensure that there's a tracking issue for all unstable features in the standard library. All existing unstable features have had issues created and they've all been updated. Yay! Closes #26868
Diffstat (limited to 'src/libstd/path.rs')
| -rw-r--r-- | src/libstd/path.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 489438973b3..71aed040871 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -725,7 +725,7 @@ impl<'a> Components<'a> { } /// Examine the next component without consuming it. - #[unstable(feature = "path_components_peek")] + #[unstable(feature = "path_components_peek", issue = "27727")] pub fn peek(&self) -> Option<Component<'a>> { self.clone().next() } @@ -1358,7 +1358,9 @@ impl Path { /// Prefixes are relevant only for Windows paths, and consist of volumes /// like `C:`, UNC prefixes like `\\server`, and others described in more /// detail in `std::os::windows::PathExt`. - #[unstable(feature = "path_prefix", reason = "uncertain whether to expose this convenience")] + #[unstable(feature = "path_prefix", + reason = "uncertain whether to expose this convenience", + issue = "27722")] pub fn prefix(&self) -> Option<Prefix> { self.components().prefix } @@ -1441,7 +1443,8 @@ impl Path { /// /// If `base` is not a prefix of `self` (i.e. `starts_with` /// returns false), then `relative_from` returns `None`. - #[unstable(feature = "path_relative_from", reason = "see #23284")] + #[unstable(feature = "path_relative_from", reason = "see #23284", + issue = "23284")] pub fn relative_from<'a, P: ?Sized + AsRef<Path>>(&'a self, base: &'a P) -> Option<&Path> { iter_after(self.components(), base.as_ref().components()).map(|c| c.as_path()) |
