Skip to content

Commit 4d30ed8

Browse files
authored
Merge pull request #4491 from RalfJung/missing-mir
make the missing-MIR message more clear
2 parents a03f2d7 + a08c5c5 commit 4d30ed8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/eval.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ pub fn create_ecx<'tcx>(
334334
helpers::try_resolve_path(tcx, &["core", "ascii", "escape_default"], Namespace::ValueNS);
335335
if !matches!(sentinel, Some(s) if tcx.is_mir_available(s.def.def_id())) {
336336
tcx.dcx().fatal(
337-
"the current sysroot was built without `-Zalways-encode-mir`, or libcore seems missing. \
338-
Use `cargo miri setup` to prepare a sysroot that is suitable for Miri."
337+
"the current sysroot was built without `-Zalways-encode-mir`, or libcore seems missing.\n\
338+
Note that directly invoking the `miri` binary is not supported; please use `cargo miri` instead."
339339
);
340340
}
341341

0 commit comments

Comments
 (0)