Skip to content

Commit

Permalink
remove deprecated APIs missed in rust-lang#30182
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Dec 13, 2015
1 parent 722905f commit b964b1d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion src/libstd/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -923,10 +923,10 @@ pub fn hard_link<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<(
/// # Ok(())
/// # }
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_deprecated(since = "1.1.0",
reason = "replaced with std::os::unix::fs::symlink and \
std::os::windows::fs::{symlink_file, symlink_dir}")]
#[stable(feature = "rust1", since = "1.0.0")]
pub fn soft_link<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<()> {
fs_imp::symlink(src.as_ref(), dst.as_ref())
}
Expand Down
7 changes: 0 additions & 7 deletions src/libsyntax/ext/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,13 +601,6 @@ impl<'a> ExtCtxt<'a> {
}
}

#[unstable(feature = "rustc_private", issue = "0")]
#[rustc_deprecated(since = "1.0.0",
reason = "Replaced with `expander().fold_expr()`")]
pub fn expand_expr(&mut self, e: P<ast::Expr>) -> P<ast::Expr> {
self.expander().fold_expr(e)
}

/// Returns a `Folder` for deeply expanding all macros in an AST node.
pub fn expander<'b>(&'b mut self) -> expand::MacroExpander<'b, 'a> {
expand::MacroExpander::new(self)
Expand Down
7 changes: 0 additions & 7 deletions src/libsyntax/util/small_vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,6 @@ impl<T> SmallVector<T> {
}
}

/// Deprecated: use `into_iter`.
#[unstable(feature = "rustc_private", issue = "0")]
#[rustc_deprecated(since = "1.0.0", reason = "use into_iter")]
pub fn move_iter(self) -> IntoIter<T> {
self.into_iter()
}

pub fn len(&self) -> usize {
match self.repr {
Zero => 0,
Expand Down

0 comments on commit b964b1d

Please sign in to comment.