about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back/write.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-10-14 16:19:15 +0530
committerGitHub <noreply@github.com>2022-10-14 16:19:15 +0530
commit8c9ecbb7e3adf14a19e16568422026849822a7ad (patch)
tree556c31d9469ee8a4c127ec2a93caa13a9a7c4ddf /compiler/rustc_codegen_llvm/src/back/write.rs
parent3017341dae66b326f07584ce6b9aa4950f3526bb (diff)
parent519125640035c66f906feb3455891ae9b41b299d (diff)
downloadrust-8c9ecbb7e3adf14a19e16568422026849822a7ad.tar.gz
rust-8c9ecbb7e3adf14a19e16568422026849822a7ad.zip
Rollup merge of #103015 - whentojump:patch, r=compiler-errors
fix a typo
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/write.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs
index db526746fa7..11053a8f6c4 100644
--- a/compiler/rustc_codegen_llvm/src/back/write.rs
+++ b/compiler/rustc_codegen_llvm/src/back/write.rs
@@ -537,7 +537,7 @@ pub(crate) fn link(
     mut modules: Vec<ModuleCodegen<ModuleLlvm>>,
 ) -> Result<ModuleCodegen<ModuleLlvm>, FatalError> {
     use super::lto::{Linker, ModuleBuffer};
-    // Sort the modules by name to ensure to ensure deterministic behavior.
+    // Sort the modules by name to ensure deterministic behavior.
     modules.sort_by(|a, b| a.name.cmp(&b.name));
     let (first, elements) =
         modules.split_first().expect("Bug! modules must contain at least one module.");