diff options
| author | Ben Kimock <kimockb@gmail.com> | 2023-04-18 14:13:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-18 14:13:19 -0400 |
| commit | 073d99b25d2e656ea053ab8dae03ea921508da76 (patch) | |
| tree | 7378f059bd0f69f29908d8e1c9162c228ea9f058 /compiler/rustc_span/src | |
| parent | a04c09ade8cf6a30b955ad2b02cec71bc1cf3f5f (diff) | |
| download | rust-073d99b25d2e656ea053ab8dae03ea921508da76.tar.gz rust-073d99b25d2e656ea053ab8dae03ea921508da76.zip | |
Add #[inline] to some new functions
Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
Diffstat (limited to 'compiler/rustc_span/src')
| -rw-r--r-- | compiler/rustc_span/src/def_id.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/def_id.rs b/compiler/rustc_span/src/def_id.rs index f05328ac1b4..6004009c6ff 100644 --- a/compiler/rustc_span/src/def_id.rs +++ b/compiler/rustc_span/src/def_id.rs @@ -186,6 +186,7 @@ impl StableCrateId { StableCrateId(hasher.finish()) } + #[inline] pub fn as_u64(self) -> u64 { self.0.as_u64() } |
