Enforce that query results implement Debug

This commit is contained in:
Aaron Hill
2021-01-03 09:19:16 -05:00
parent 492b83c697
commit 7afb32557d
22 changed files with 45 additions and 33 deletions

View File

@@ -3,7 +3,7 @@ use rustc_attr::{InlineAttr, InstructionSetAttr, OptimizeAttr};
use rustc_session::config::SanitizerSet;
use rustc_span::symbol::Symbol;
#[derive(Clone, TyEncodable, TyDecodable, HashStable)]
#[derive(Clone, TyEncodable, TyDecodable, HashStable, Debug)]
pub struct CodegenFnAttrs {
pub flags: CodegenFnAttrFlags,
/// Parsed representation of the `#[inline]` attribute

View File

@@ -96,7 +96,7 @@ pub struct NativeLib {
pub wasm_import_module: Option<Symbol>,
}
#[derive(Clone, TyEncodable, TyDecodable, HashStable)]
#[derive(Clone, TyEncodable, TyDecodable, HashStable, Debug)]
pub struct ForeignModule {
pub foreign_items: Vec<DefId>,
pub def_id: DefId,

View File

@@ -7,7 +7,7 @@ pub mod lib_features {
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
use rustc_span::symbol::Symbol;
#[derive(HashStable)]
#[derive(HashStable, Debug)]
pub struct LibFeatures {
// A map from feature to stabilisation version.
pub stable: FxHashMap<Symbol, Symbol>,

View File

@@ -68,7 +68,7 @@ pub type ObjectLifetimeDefault = Set1<Region>;
/// Maps the id of each lifetime reference to the lifetime decl
/// that it corresponds to.
#[derive(Default, HashStable)]
#[derive(Default, HashStable, Debug)]
pub struct ResolveLifetimes {
/// Maps from every use of a named (not anonymous) lifetime to a
/// `Region` describing how that region is bound

View File

@@ -36,7 +36,7 @@ impl StabilityLevel {
}
/// An entry in the `depr_map`.
#[derive(Clone, HashStable)]
#[derive(Clone, HashStable, Debug)]
pub struct DeprecationEntry {
/// The metadata of the attribute associated with this entry.
pub attr: Deprecation,
@@ -63,7 +63,7 @@ impl DeprecationEntry {
}
/// A stability index, giving the stability level for items and methods.
#[derive(HashStable)]
#[derive(HashStable, Debug)]
pub struct Index<'tcx> {
/// This is mostly a cache, except the stabilities of local items
/// are filled by the annotator.