make the missing-MIR message more clear
This commit is contained in:
parent
cbd1557d02
commit
fd114d465a
1 changed files with 2 additions and 2 deletions
|
|
@ -334,8 +334,8 @@ pub fn create_ecx<'tcx>(
|
|||
helpers::try_resolve_path(tcx, &["core", "ascii", "escape_default"], Namespace::ValueNS);
|
||||
if !matches!(sentinel, Some(s) if tcx.is_mir_available(s.def.def_id())) {
|
||||
tcx.dcx().fatal(
|
||||
"the current sysroot was built without `-Zalways-encode-mir`, or libcore seems missing. \
|
||||
Use `cargo miri setup` to prepare a sysroot that is suitable for Miri."
|
||||
"the current sysroot was built without `-Zalways-encode-mir`, or libcore seems missing.\n\
|
||||
Note that directly invoking the `miri` binary is not supported; please use `cargo miri` instead."
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue