Upgrade rust/crates/protobuf to 2.16.2
* Update local file out/version.rs to new cargo output.
* Keep local change of src/lib.rs that includes out/version.rs.
Test: make
Change-Id: I535c121ed1bd49d638e70ee88d12661e0b918eaa
diff --git a/src/lazy.rs b/src/lazy.rs
index b57d9f9..5b01502 100644
--- a/src/lazy.rs
+++ b/src/lazy.rs
@@ -1,10 +1,17 @@
//! Lazily initialized data.
//! Used in generated code.
+// Avoid deprecation warnings when compiling rust-protobuf
+#![allow(deprecated)]
+
use std::mem;
use std::sync;
/// Lasily initialized data.
+#[deprecated(
+ since = "2.16",
+ note = "Please regenerate .rs files from .proto files to use newer APIs"
+)]
pub struct Lazy<T> {
#[doc(hidden)]
pub lock: sync::Once,