-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix 'unused import' warning. #6645
Conversation
@@ -33,6 +32,9 @@ use unstable::intrinsics; | |||
use vec; | |||
use util; | |||
|
|||
#[cfg(stage0)] | |||
use old_iter::{BaseIter, CopyableIter}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this compiled? I looked into this and it can be fixed by just removing the BaseIter
import (as the warning message says btw)
This does not work, I guess it's in stage 1 as well?
|
You might have some other changes in play here. On revision 84233c0 with the patch diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs
index 14dcde2..65f8dab 100644
--- a/src/libcore/vec.rs
+++ b/src/libcore/vec.rs
@@ -22,7 +22,7 @@ use old_iter;
use iterator::Iterator;
use kinds::Copy;
use libc;
-use old_iter::{BaseIter, CopyableIter};
+use old_iter::CopyableIter;
use option::{None, Option, Some};
use ptr::to_unsafe_ptr;
use ptr; I get no errors in both stage0 and stage1 when compiling libcore |
Hrm. :( I guess just apply that, then. |
Fix website syntax highlighting changelog: none Fix syntax highlighting on website when the docs contain ` ```rust,ignore`
Fixes #6630.