mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Remove mention of rust to make the error message generic.
The deprecation notice is used when in crates as well. This applies to versions Rust or Crates. Fixes #118148 Signed-off-by: Harold Dost <h.dost@criteo.com>
This commit is contained in:
@@ -673,7 +673,7 @@ fn short_item_info(
|
||||
format!("Deprecating in {version}")
|
||||
}
|
||||
}
|
||||
DeprecatedSince::Future => String::from("Deprecating in a future Rust version"),
|
||||
DeprecatedSince::Future => String::from("Deprecating in a future version"),
|
||||
DeprecatedSince::NonStandard(since) => {
|
||||
format!("Deprecated since {}", Escape(since.as_str()))
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
// @has deprecated_future_staged_api/index.html '//*[@class="stab deprecated"]' \
|
||||
// 'Deprecation planned'
|
||||
// @has deprecated_future_staged_api/struct.S2.html '//*[@class="stab deprecated"]' \
|
||||
// 'Deprecating in a future Rust version: literally never'
|
||||
// 'Deprecating in a future version: literally never'
|
||||
#[deprecated(since = "TBD", note = "literally never")]
|
||||
#[stable(feature = "deprecated_future_staged_api", since = "1.0.0")]
|
||||
pub struct S2;
|
||||
|
||||
Reference in New Issue
Block a user