1
Fork 0

Remove a large amount of deprecated functionality

Spring cleaning is here! In the Fall! This commit removes quite a large amount
of deprecated functionality from the standard libraries. I tried to ensure that
only old deprecated functionality was removed.

This is removing lots and lots of deprecated features, so this is a breaking
change. Please consult the deprecation messages of the deleted code to see how
to migrate code forward if it still needs migration.

[breaking-change]
This commit is contained in:
Alex Crichton 2014-10-14 23:05:01 -07:00
parent fb169d5543
commit 9d5d97b55d
342 changed files with 1352 additions and 4266 deletions

View file

@ -100,7 +100,7 @@ impl<'a> fold::Folder for StandardLibraryInjector<'a> {
// `extern crate` must be precede `use` items
mem::swap(&mut vis, &mut krate.module.view_items);
krate.module.view_items.push_all_move(vis);
krate.module.view_items.extend(vis.into_iter());
// don't add #![no_std] here, that will block the prelude injection later.
// Add it during the prelude injection instead.
@ -219,7 +219,7 @@ impl<'a> fold::Folder for PreludeInjector<'a> {
vis: ast::Inherited,
span: DUMMY_SP,
});
view_items.push_all_move(uses);
view_items.extend(uses.into_iter());
fold::noop_fold_mod(ast::Mod {
inner: inner,