diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-11-03 08:12:19 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-11-25 07:51:56 +0000 |
| commit | 2a94a2d385657dfa89bf2d46d2a6114be70afef0 (patch) | |
| tree | bd430a838465b03dcd52f69d68894c3eb7ad74dc /compiler/rustc_span/src/def_id.rs | |
| parent | b5554722ffb720e66a4e22ee2917b2c038498161 (diff) | |
| download | rust-2a94a2d385657dfa89bf2d46d2a6114be70afef0.tar.gz rust-2a94a2d385657dfa89bf2d46d2a6114be70afef0.zip | |
Prefer not accessing the private field of newtype_index types
Diffstat (limited to 'compiler/rustc_span/src/def_id.rs')
| -rw-r--r-- | compiler/rustc_span/src/def_id.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/def_id.rs b/compiler/rustc_span/src/def_id.rs index bbeabdb55a7..f5555846d20 100644 --- a/compiler/rustc_span/src/def_id.rs +++ b/compiler/rustc_span/src/def_id.rs @@ -34,7 +34,7 @@ impl CrateNum { impl fmt::Display for CrateNum { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - fmt::Display::fmt(&self.private, f) + fmt::Display::fmt(&self.as_u32(), f) } } |
