diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-02-09 22:50:03 +0100 | 
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-02-24 14:31:19 +0100 | 
| commit | 95b52d51eac77be1fcc624c2278dcaafa6989b0b (patch) | |
| tree | a952e5797f050dc9a4cfd4cae3e4483e9e83fe55 /compiler/rustc_attr_data_structures/src/version.rs | |
| parent | 309b46ad68d15377edd95836796bceb196b2d1b8 (diff) | |
| download | rust-95b52d51eac77be1fcc624c2278dcaafa6989b0b.tar.gz rust-95b52d51eac77be1fcc624c2278dcaafa6989b0b.zip | |
pretty print hir attributes
Diffstat (limited to 'compiler/rustc_attr_data_structures/src/version.rs')
| -rw-r--r-- | compiler/rustc_attr_data_structures/src/version.rs | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/compiler/rustc_attr_data_structures/src/version.rs b/compiler/rustc_attr_data_structures/src/version.rs index 6be875ad4be..69b0e041d81 100644 --- a/compiler/rustc_attr_data_structures/src/version.rs +++ b/compiler/rustc_attr_data_structures/src/version.rs @@ -1,9 +1,13 @@ use std::fmt::{self, Display}; -use rustc_macros::{Decodable, Encodable, HashStable_Generic, current_rustc_version}; +use rustc_macros::{ + Decodable, Encodable, HashStable_Generic, PrintAttribute, current_rustc_version, +}; + +use crate::PrintAttribute; #[derive(Encodable, Decodable, Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] -#[derive(HashStable_Generic)] +#[derive(HashStable_Generic, PrintAttribute)] pub struct RustcVersion { pub major: u16, pub minor: u16, | 
