We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Context
1 parent b3d2a37 commit 3bc879eCopy full SHA for 3bc879e
src/librustdoc/html/render/context.rs
@@ -70,6 +70,10 @@ crate struct Context<'tcx> {
70
pub(super) cache: Rc<Cache>,
71
}
72
73
+// `Context` is cloned a lot, so we don't want the size to grow unexpectedly.
74
+#[cfg(target_arch = "x86_64")]
75
+rustc_data_structures::static_assert_size!(Context<'_>, 72);
76
+
77
impl<'tcx> Context<'tcx> {
78
pub(super) fn path(&self, filename: &str) -> PathBuf {
79
// We use splitn vs Path::extension here because we might get a filename
0 commit comments