]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #40598 - frewsxcv:rollup, r=frewsxcv
authorbors <bors@rust-lang.org>
Fri, 17 Mar 2017 17:26:52 +0000 (17:26 +0000)
committerbors <bors@rust-lang.org>
Fri, 17 Mar 2017 17:26:52 +0000 (17:26 +0000)
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:

1  2 
src/libstd/path.rs

diff --combined src/libstd/path.rs
index b524af800c1c6693a9cc37ee0eac007996a87c1f,8f1c2ae0c8daa187e8e91fa98efba5e9d4d1c3c6..a744407903b1ee9ad09abecf754e3710ca09a716
@@@ -1065,13 -1065,13 +1065,13 @@@ impl PathBuf 
          self.inner.push(path);
      }
  
-     /// Truncate `self` to [`self.parent()`].
+     /// Truncate `self` to [`self.parent`].
      ///
-     /// Returns false and does nothing if [`self.file_name()`] is `None`.
+     /// Returns false and does nothing if [`self.file_name`] is `None`.
      /// Otherwise, returns `true`.
      ///
-     /// [`self.parent()`]: struct.PathBuf.html#method.parent
-     /// [`self.file_name()`]: struct.PathBuf.html#method.file_name
+     /// [`self.parent`]: struct.PathBuf.html#method.parent
+     /// [`self.file_name`]: struct.PathBuf.html#method.file_name
      ///
      /// # Examples
      ///
          }
      }
  
-     /// Updates [`self.file_name()`] to `file_name`.
+     /// Updates [`self.file_name`] to `file_name`.
      ///
-     /// If [`self.file_name()`] was [`None`], this is equivalent to pushing
+     /// If [`self.file_name`] was [`None`], this is equivalent to pushing
      /// `file_name`.
      ///
-     /// [`self.file_name()`]: struct.PathBuf.html#method.file_name
+     /// [`self.file_name`]: struct.PathBuf.html#method.file_name
      /// [`None`]: ../../std/option/enum.Option.html#variant.None
      ///
      /// # Examples
          self.push(file_name);
      }
  
-     /// Updates [`self.extension()`] to `extension`.
+     /// Updates [`self.extension`] to `extension`.
      ///
-     /// If [`self.file_name()`] is `None`, does nothing and returns `false`.
+     /// If [`self.file_name`] is `None`, does nothing and returns `false`.
      ///
-     /// Otherwise, returns `true`; if [`self.extension()`] is [`None`], the
+     /// Otherwise, returns `true`; if [`self.extension`] is [`None`], the
      /// extension is added; otherwise it is replaced.
      ///
-     /// [`self.file_name()`]: struct.PathBuf.html#method.file_name
-     /// [`self.extension()`]: struct.PathBuf.html#method.extension
+     /// [`self.file_name`]: struct.PathBuf.html#method.file_name
+     /// [`self.extension`]: struct.PathBuf.html#method.extension
      /// [`None`]: ../../std/option/enum.Option.html#variant.None
      ///
      /// # Examples
@@@ -1224,6 -1224,14 +1224,6 @@@ impl Into<Box<Path>> for PathBuf 
      }
  }
  
 -#[stable(feature = "box_default_extra", since = "1.17.0")]
 -impl Default for Box<Path> {
 -    fn default() -> Box<Path> {
 -        let boxed: Box<OsStr> = Default::default();
 -        unsafe { mem::transmute(boxed) }
 -    }
 -}
 -
  #[stable(feature = "rust1", since = "1.0.0")]
  impl<'a, T: ?Sized + AsRef<OsStr>> From<&'a T> for PathBuf {
      fn from(s: &'a T) -> PathBuf {
@@@ -1739,9 -1747,9 +1739,9 @@@ impl Path 
          iter_after(self.components().rev(), child.components().rev()).is_some()
      }
  
-     /// Extracts the stem (non-extension) portion of [`self.file_name()`].
+     /// Extracts the stem (non-extension) portion of [`self.file_name`].
      ///
-     /// [`self.file_name()`]: struct.Path.html#method.file_name
+     /// [`self.file_name`]: struct.Path.html#method.file_name
      ///
      /// The stem is:
      ///
          self.file_name().map(split_file_at_dot).and_then(|(before, after)| before.or(after))
      }
  
-     /// Extracts the extension of [`self.file_name()`], if possible.
+     /// Extracts the extension of [`self.file_name`], if possible.
      ///
      /// The extension is:
      ///
      /// * [`None`], if the file name begins with `.` and has no other `.`s within;
      /// * Otherwise, the portion of the file name after the final `.`
      ///
-     /// [`self.file_name()`]: struct.Path.html#method.file_name
+     /// [`self.file_name`]: struct.Path.html#method.file_name
      /// [`None`]: ../../std/option/enum.Option.html#variant.None
      ///
      /// # Examples
@@@ -3722,4 -3730,10 +3722,4 @@@ mod tests 
          assert_eq!(&*boxed, &*path_buf);
          assert_eq!(&*path_buf, path);
      }
 -
 -    #[test]
 -    fn boxed_default() {
 -        let boxed = <Box<Path>>::default();
 -        assert!(boxed.as_os_str().is_empty());
 -    }
  }