Import from core library was wrong, it misses several crate directives
since we're no longer dealing with multiple files.
gcc/testsuite/ChangeLog:
* rust/compile/issue-2905-2.rs: Import from core library into a single
file misses the crate directives.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
}
pub mod slice {
- use core::marker::PhantomData;
- use core::option::Option;
+ use crate::core::marker::PhantomData;
+ use crate::core::option::Option;
- impl<T> core::iter::IntoIterator for &[T] {
+ impl<T> crate::core::iter::IntoIterator for &[T] {
type Item = &T;
type IntoIter = Weird<T>;
}
pub mod iter {
- use option::Option;
+ use crate::core::option::Option;
pub trait IntoIterator {
type Item;