diff options
| author | bors <bors@rust-lang.org> | 2015-04-10 16:18:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-04-10 16:18:44 +0000 |
| commit | c897ac04e2ebda378fd9e38f6ec0878ae3a2baf7 (patch) | |
| tree | f26b1f3541943b61937faf150f90b46e9a8f15c5 /src/libstd/old_path/mod.rs | |
| parent | 9539627ac76ca37d617a329dbd79c50c59cf59ee (diff) | |
| parent | 445faca8441aae34c91318b6ad9e2049885af8dc (diff) | |
| download | rust-c897ac04e2ebda378fd9e38f6ec0878ae3a2baf7.tar.gz rust-c897ac04e2ebda378fd9e38f6ec0878ae3a2baf7.zip | |
Auto merge of #24177 - alexcrichton:rustdoc, r=aturon
This commit series starts out with more official test harness support for rustdoc tests, and then each commit afterwards adds a test (where appropriate). Each commit should also test and finish independently of all others (they're all pretty separable). I've uploaded a [copy of the documentation](http://people.mozilla.org/~acrichton/doc/std/) generated after all these commits were applied, and a double check on issues being closed would be greatly appreciated! I'll also browse the docs a bit and make sure nothing regressed too horribly.
Diffstat (limited to 'src/libstd/old_path/mod.rs')
| -rw-r--r-- | src/libstd/old_path/mod.rs | 76 |
1 files changed, 36 insertions, 40 deletions
diff --git a/src/libstd/old_path/mod.rs b/src/libstd/old_path/mod.rs index 9c88533d3ba..2dee90e9a66 100644 --- a/src/libstd/old_path/mod.rs +++ b/src/libstd/old_path/mod.rs @@ -48,7 +48,7 @@ //! //! ## Examples //! -//! ```rust +//! ```rust,ignore //! # #![feature(old_path, old_io)] //! use std::old_io::fs::PathExtensions; //! use std::old_path::{Path, GenericPath}; @@ -144,12 +144,10 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```no_run /// # #![feature(old_path)] - /// use std::old_path::{Path, GenericPath}; - /// # foo(); - /// # #[cfg(windows)] fn foo() {} - /// # #[cfg(unix)] fn foo() { + /// # fn main() { + /// use std::old_path::Path; /// let path = Path::new("foo/bar"); /// # } /// ``` @@ -170,12 +168,10 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```no_run /// # #![feature(old_path)] - /// use std::old_path::{Path, GenericPath}; - /// # foo(); - /// # #[cfg(windows)] fn foo() {} - /// # #[cfg(unix)] fn foo() { + /// # fn main() { + /// use std::old_path::Path; /// let x: &[u8] = b"foo\0"; /// assert!(Path::new_opt(x).is_none()); /// # } @@ -194,7 +190,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -213,7 +209,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -229,7 +225,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -246,7 +242,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -266,7 +262,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -285,7 +281,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -302,7 +298,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -323,7 +319,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -340,7 +336,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -361,7 +357,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -390,7 +386,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -412,7 +408,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -441,7 +437,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -461,7 +457,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -489,7 +485,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -541,7 +537,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -568,7 +564,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -594,7 +590,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -615,7 +611,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -632,7 +628,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -658,7 +654,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -689,7 +685,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -708,7 +704,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -735,7 +731,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -759,7 +755,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -778,7 +774,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -798,7 +794,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -819,7 +815,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); @@ -837,7 +833,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe { /// /// # Examples /// - /// ``` + /// ```ignore /// # #![feature(old_path)] /// use std::old_path::{Path, GenericPath}; /// # foo(); |
