incr. comp.: Don't export impl_stable_hash_via_hash!() and warn about using it.
This commit is contained in:
parent
e2661bac6d
commit
c0be619724
8 changed files with 38 additions and 37 deletions
|
@ -39,6 +39,7 @@ pub use rustc_lint_defs::{pluralize, Applicability};
|
|||
use rustc_serialize::json::Json;
|
||||
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
|
||||
use rustc_span::source_map::SourceMap;
|
||||
use rustc_span::HashStableContext;
|
||||
use rustc_span::{Loc, Span};
|
||||
|
||||
use std::borrow::Cow;
|
||||
|
@ -1531,6 +1532,7 @@ pub fn add_elided_lifetime_in_path_suggestion(
|
|||
/// Useful type to use with `Result<>` indicate that an error has already
|
||||
/// been reported to the user, so no need to continue checking.
|
||||
#[derive(Clone, Copy, Debug, Encodable, Decodable, Hash, PartialEq, Eq, PartialOrd, Ord)]
|
||||
#[derive(HashStable_Generic)]
|
||||
pub struct ErrorGuaranteed(());
|
||||
|
||||
impl ErrorGuaranteed {
|
||||
|
@ -1540,5 +1542,3 @@ impl ErrorGuaranteed {
|
|||
ErrorGuaranteed(())
|
||||
}
|
||||
}
|
||||
|
||||
rustc_data_structures::impl_stable_hash_via_hash!(ErrorGuaranteed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue