summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@chromium.org>2019-03-12 20:49:35 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-04-15 02:06:04 -0700
commit1b7f3ed23505b83343b376c8d8777366457402d0 (patch)
tree26d1cb69582c1b645a1771cc0a64b96c9649871f
parent3df3552e4d62d60aac3bc33a4ee9468e7514202f (diff)
downloadcrosvm-1b7f3ed23505b83343b376c8d8777366457402d0.tar
crosvm-1b7f3ed23505b83343b376c8d8777366457402d0.tar.gz
crosvm-1b7f3ed23505b83343b376c8d8777366457402d0.tar.bz2
crosvm-1b7f3ed23505b83343b376c8d8777366457402d0.tar.lz
crosvm-1b7f3ed23505b83343b376c8d8777366457402d0.tar.xz
crosvm-1b7f3ed23505b83343b376c8d8777366457402d0.tar.zst
crosvm-1b7f3ed23505b83343b376c8d8777366457402d0.zip
edition: Update devices crate to 2018 edition
Separated out of CL:1513058 to make it possible to land parts
individually while the affected crate has no other significant CLs
pending. This avoids repeatedly introducing non-textual conflicts with
new code that adds `use` statements.

TEST=cargo check
TEST=cargo check --all-features
TEST=cargo check --target aarch64-unknown-linux-gnu

Change-Id: I964a198b54dfa7b98fa2f49a404fda3d09c0f44f
Reviewed-on: https://chromium-review.googlesource.com/1519693
Commit-Ready: David Tolnay <dtolnay@chromium.org>
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: David Tolnay <dtolnay@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: David Tolnay <dtolnay@chromium.org>
-rw-r--r--devices/Cargo.toml1
-rw-r--r--devices/src/ioapic.rs2
-rw-r--r--devices/src/virtio/vhost/net.rs4
-rw-r--r--devices/src/virtio/vhost/vsock.rs2
4 files changed, 5 insertions, 4 deletions
diff --git a/devices/Cargo.toml b/devices/Cargo.toml
index cd554c9..62b570e 100644
--- a/devices/Cargo.toml
+++ b/devices/Cargo.toml
@@ -2,6 +2,7 @@
 name = "devices"
 version = "0.1.0"
 authors = ["The Chromium OS Authors"]
+edition = "2018"
 
 [features]
 gpu = ["gpu_buffer", "gpu_display", "gpu_renderer"]
diff --git a/devices/src/ioapic.rs b/devices/src/ioapic.rs
index d2afb9c..61829b6 100644
--- a/devices/src/ioapic.rs
+++ b/devices/src/ioapic.rs
@@ -5,9 +5,9 @@
 // Implementation of an intel 82093AA Input/Output Advanced Programmable Interrupt Controller
 // See https://pdos.csail.mit.edu/6.828/2016/readings/ia32/ioapic.pdf for a specification.
 
+use crate::split_irqchip_common::*;
 use crate::BusDevice;
 use bit_field::*;
-use split_irqchip_common::*;
 
 #[bitfield]
 #[derive(Clone, Copy, PartialEq)]
diff --git a/devices/src/virtio/vhost/net.rs b/devices/src/virtio/vhost/net.rs
index 2ecef9d..ba5f56d 100644
--- a/devices/src/virtio/vhost/net.rs
+++ b/devices/src/virtio/vhost/net.rs
@@ -12,8 +12,8 @@ use std::thread;
 use net_sys;
 use net_util::{MacAddress, TapT};
 
+use ::vhost::NetT as VhostNetT;
 use sys_util::{EventFd, GuestMemory};
-use vhost::NetT as VhostNetT;
 use virtio_sys::{vhost, virtio_net};
 
 use super::super::{Queue, VirtioDevice, TYPE_NET};
@@ -220,10 +220,10 @@ where
 #[cfg(test)]
 pub mod tests {
     use super::*;
+    use ::vhost::net::fakes::FakeNet;
     use net_util::fakes::FakeTap;
     use std::result;
     use sys_util::{GuestAddress, GuestMemory, GuestMemoryError};
-    use vhost::net::fakes::FakeNet;
 
     fn create_guest_memory() -> result::Result<GuestMemory, GuestMemoryError> {
         let start_addr1 = GuestAddress(0x0);
diff --git a/devices/src/virtio/vhost/vsock.rs b/devices/src/virtio/vhost/vsock.rs
index ff4e575..1ffd078 100644
--- a/devices/src/virtio/vhost/vsock.rs
+++ b/devices/src/virtio/vhost/vsock.rs
@@ -9,8 +9,8 @@ use std::thread;
 
 use byteorder::{ByteOrder, LittleEndian};
 
+use ::vhost::Vsock as VhostVsockHandle;
 use sys_util::{EventFd, GuestMemory};
-use vhost::Vsock as VhostVsockHandle;
 use virtio_sys::vhost;
 
 use super::super::{Queue, VirtioDevice, TYPE_VSOCK};