diff --git a/src/flags.rs b/src/flags.rs index b71dd82f..67ad8474 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -166,7 +166,7 @@ impl<'this> RustcCodegenFlags<'this> { self.branch_protection = flag_not_empty(value)?; } // https://doc.rust-lang.org/beta/unstable-book/compiler-flags/dwarf-version.html - // FIXME: Drop the -Z variant and update the doc link once the option is stablized + // FIXME: Drop the -Z variant and update the doc link once the option is stabilized "-Zdwarf-version" | "-Cdwarf-version" => { self.dwarf_version = flag_not_empty_generic(flag, value.and_then(arg_to_u32))?; } diff --git a/src/lib.rs b/src/lib.rs index 865eb31f..60090f08 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1319,7 +1319,7 @@ impl Build { /// always run on every compilation if no rerun cargo metadata is emitted. /// /// NOTE that cc does not emit metadata to detect changes for `PATH`, since it could - /// be changed every comilation yet does not affect the result of compilation + /// be changed every compilation yet does not affect the result of compilation /// (i.e. rust-analyzer adds temporary directory to `PATH`). /// /// cc in general, has no way detecting changes to compiler, as there are so many ways to @@ -1805,7 +1805,7 @@ impl Build { is_arm, }, ); - // armasm and armasm64 don't requrie -c option + // armasm and armasm64 don't require -c option if !is_assembler_msvc || !is_arm { cmd.arg("-c"); }