mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
A bit of spell-checking
This commit is contained in:
parent
b8cfa7633a
commit
3df2884c52
@ -56,7 +56,7 @@ fn main() {
|
||||
return;
|
||||
}
|
||||
|
||||
// The way rustdoc invokes rustc is indistuingishable from the way cargo invokes rustdoc by the
|
||||
// The way rustdoc invokes rustc is indistinguishable from the way cargo invokes rustdoc by the
|
||||
// arguments alone. `phase_cargo_rustdoc` sets this environment variable to let us disambiguate.
|
||||
if env::var_os("MIRI_CALLED_FROM_RUSTDOC").is_some() {
|
||||
// ...however, we then also see this variable when rustdoc invokes us as the testrunner!
|
||||
|
@ -521,7 +521,7 @@ pub fn phase_runner(mut binary_args: impl Iterator<Item = String>, phase: Runner
|
||||
// `.rmeta`.
|
||||
// We also need to remove `--error-format` as cargo specifies that to be JSON,
|
||||
// but when we run here, cargo does not interpret the JSON any more. `--json`
|
||||
// then also nees to be dropped.
|
||||
// then also needs to be dropped.
|
||||
let mut args = info.args.into_iter();
|
||||
let error_format_flag = "--error-format";
|
||||
let json_flag = "--json";
|
||||
|
@ -114,7 +114,7 @@ pub fn setup(
|
||||
command.arg("-v");
|
||||
}
|
||||
} else {
|
||||
// Supress output.
|
||||
// Suppress output.
|
||||
command.stdout(process::Stdio::null());
|
||||
command.stderr(process::Stdio::null());
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ impl MiriEnv {
|
||||
Err(_) => vec![],
|
||||
};
|
||||
if !quiet {
|
||||
eprintln!("$ (buildig Miri sysroot)");
|
||||
eprintln!("$ (building Miri sysroot)");
|
||||
}
|
||||
let output = cmd!(self.sh,
|
||||
"cargo +{toolchain} --quiet run {cargo_extra_flags...} --manifest-path {manifest_path} --
|
||||
|
@ -337,7 +337,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
|
||||
/// Call a function: Push the stack frame and pass the arguments.
|
||||
/// For now, arguments must be scalars (so that the caller does not have to know the layout).
|
||||
///
|
||||
/// If you do not provie a return place, a dangling zero-sized place will be created
|
||||
/// If you do not provide a return place, a dangling zero-sized place will be created
|
||||
/// for your convenience.
|
||||
fn call_function(
|
||||
&mut self,
|
||||
|
@ -427,7 +427,7 @@ pub struct MiriMachine<'mir, 'tcx> {
|
||||
/// the emulated program.
|
||||
profiler: Option<measureme::Profiler>,
|
||||
/// Used with `profiler` to cache the `StringId`s for event names
|
||||
/// uesd with `measureme`.
|
||||
/// used with `measureme`.
|
||||
string_cache: FxHashMap<String, measureme::StringId>,
|
||||
|
||||
/// Cache of `Instance` exported under the given `Symbol` name.
|
||||
@ -516,7 +516,7 @@ impl<'mir, 'tcx> MiriMachine<'mir, 'tcx> {
|
||||
let pid = process::id();
|
||||
// We adopt the same naming scheme for the profiler output that rustc uses. In rustc,
|
||||
// the PID is padded so that the nondeterministic value of the PID does not spread
|
||||
// nondeterminisim to the allocator. In Miri we are not aiming for such performance
|
||||
// nondeterminism to the allocator. In Miri we are not aiming for such performance
|
||||
// control, we just pad for consistency with rustc.
|
||||
let filename = format!("{crate_name}-{pid:07}");
|
||||
let path = Path::new(out).join(filename);
|
||||
|
Loading…
Reference in New Issue
Block a user