about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-02 19:42:50 +0200
committerGitHub <noreply@github.com>2024-05-02 19:42:50 +0200
commita248411a9735dcfe9ba666fd293b3726fe490e43 (patch)
tree3047f5dd06c7d08f01b9438c0787fa5df217a6b9
parentd6940fb43d7c81d1b4e8fd2e3f699f3b43f0cc1a (diff)
parentdba1849c22b6c10af98e720cfa6dd6868f029e4a (diff)
downloadrust-a248411a9735dcfe9ba666fd293b3726fe490e43.tar.gz
rust-a248411a9735dcfe9ba666fd293b3726fe490e43.zip
Rollup merge of #124627 - RalfJung:interpret-doc-no-inline, r=fmease
interpret: hide some reexports in rustdoc

Cc https://github.com/rust-lang/rust/issues/124608
-rw-r--r--compiler/rustc_const_eval/src/interpret/mod.rs1
-rw-r--r--src/tools/miri/src/lib.rs2
2 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/mod.rs b/compiler/rustc_const_eval/src/interpret/mod.rs
index 7ede90ad13f..7d7b421f869 100644
--- a/compiler/rustc_const_eval/src/interpret/mod.rs
+++ b/compiler/rustc_const_eval/src/interpret/mod.rs
@@ -18,6 +18,7 @@ mod util;
 mod validity;
 mod visitor;
 
+#[doc(no_inline)]
 pub use rustc_middle::mir::interpret::*; // have all the `interpret` symbols in one place: here
 
 pub use self::eval_context::{format_interp_error, Frame, FrameInfo, InterpCx, StackPopCleanup};
diff --git a/src/tools/miri/src/lib.rs b/src/tools/miri/src/lib.rs
index 44727e01ea2..f47c84842b1 100644
--- a/src/tools/miri/src/lib.rs
+++ b/src/tools/miri/src/lib.rs
@@ -89,8 +89,10 @@ mod shims;
 // Establish a "crate-wide prelude": we often import `crate::*`.
 
 // Make all those symbols available in the same place as our own.
+#[doc(no_inline)]
 pub use rustc_const_eval::interpret::*;
 // Resolve ambiguity.
+#[doc(no_inline)]
 pub use rustc_const_eval::interpret::{self, AllocMap, PlaceTy, Provenance as _};
 
 pub use crate::shims::env::{EnvVars, EvalContextExt as _};