Skip to content

Commit 44b342e

Browse files
committed
rustdoc: Mark Context::tcx() as #[inline(always)]
1 parent e99963c commit 44b342e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustdoc/html/render/context.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ impl SharedContext<'_> {
151151
}
152152

153153
impl<'tcx> Context<'tcx> {
154+
#[inline(always)]
154155
pub(crate) fn tcx(&self) -> TyCtxt<'tcx> {
155156
self.shared.tcx
156157
}

0 commit comments

Comments
 (0)