diff options
| author | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2022-03-30 01:39:38 -0400 |
|---|---|---|
| committer | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2022-03-30 01:39:38 -0400 |
| commit | 7e8201ae0a57ef63b876cf2bf9ae388426f1dda5 (patch) | |
| tree | 5acf581815892fa97944a80a175c5f75070b5888 /compiler/rustc_codegen_ssa/src/back | |
| parent | 600ec284838c52d1f6657c2cf0097b58970b133b (diff) | |
| download | rust-7e8201ae0a57ef63b876cf2bf9ae388426f1dda5.tar.gz rust-7e8201ae0a57ef63b876cf2bf9ae388426f1dda5.zip | |
Spellchecking some comments
This PR attempts to clean up some minor spelling mistakes in comments
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/link.rs | 6 | ||||
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/symbol_export.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs index 9cc06ac0319..dbbbbd5ecc0 100644 --- a/compiler/rustc_codegen_ssa/src/back/link.rs +++ b/compiler/rustc_codegen_ssa/src/back/link.rs @@ -709,7 +709,7 @@ fn link_natively<'a, B: ArchiveBuilder<'a>>( let out = String::from_utf8_lossy(&out); // Check to see if the link failed with an error message that indicates it - // doesn't recognize the -no-pie option. If so, reperform the link step + // doesn't recognize the -no-pie option. If so, re-perform the link step // without it. This is safe because if the linker doesn't support -no-pie // then it should not default to linking executables as pie. Different // versions of gcc seem to use different quotes in the error message so @@ -1049,7 +1049,7 @@ fn escape_string(s: &[u8]) -> String { fn add_sanitizer_libraries(sess: &Session, crate_type: CrateType, linker: &mut dyn Linker) { // On macOS the runtimes are distributed as dylibs which should be linked to // both executables and dynamic shared objects. Everywhere else the runtimes - // are currently distributed as static liraries which should be linked to + // are currently distributed as static libraries which should be linked to // executables only. let needs_runtime = match crate_type { CrateType::Executable => true, @@ -1850,7 +1850,7 @@ fn linker_with_args<'a, B: ArchiveBuilder<'a>>( // Upstream rust libraries and their nobundle static libraries add_upstream_rust_crates::<B>(cmd, sess, codegen_results, crate_type, tmpdir); - // Upstream dymamic native libraries linked with `#[link]` attributes at and `-l` + // Upstream dynamic native libraries linked with `#[link]` attributes at and `-l` // command line options. // If -Zlink-native-libraries=false is set, then the assumption is that an // external build system already has the native dependencies defined, and it diff --git a/compiler/rustc_codegen_ssa/src/back/symbol_export.rs b/compiler/rustc_codegen_ssa/src/back/symbol_export.rs index 8191d8b5e49..765bd877db1 100644 --- a/compiler/rustc_codegen_ssa/src/back/symbol_export.rs +++ b/compiler/rustc_codegen_ssa/src/back/symbol_export.rs @@ -91,7 +91,7 @@ fn reachable_non_generics_provider(tcx: TyCtxt<'_>, cnum: CrateNum) -> DefIdMap< if !generics.requires_monomorphization(tcx) // Functions marked with #[inline] are codegened with "internal" // linkage and are not exported unless marked with an extern - // inidicator + // indicator && (!Instance::mono(tcx, def_id.to_def_id()).def.generates_cgu_internal_copy(tcx) || tcx.codegen_fn_attrs(def_id.to_def_id()).contains_extern_indicator()) { |
