mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 14:02:06 +03:00
Derive Eq and Hash for SourceInfo again
This commit is contained in:
@@ -467,7 +467,9 @@ impl<T: Decodable> rustc_serialize::UseSpecializedDecodable for ClearCrossCrate<
|
||||
/// Grouped information about the source code origin of a MIR entity.
|
||||
/// Intended to be inspected by diagnostics and debuginfo.
|
||||
/// Most passes can work with it as a whole, within a single function.
|
||||
#[derive(Copy, Clone, Debug, PartialEq, RustcEncodable, RustcDecodable, HashStable)]
|
||||
// The unoffical Cranelift backend, at least as of #65828, needs `SourceInfo` to implement `Eq` and
|
||||
// `Hash`. Please ping @bjorn3 if removing them.
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq, RustcEncodable, RustcDecodable, Hash, HashStable)]
|
||||
pub struct SourceInfo {
|
||||
/// The source span for the AST pertaining to this MIR entity.
|
||||
pub span: Span,
|
||||
|
||||
Reference in New Issue
Block a user