diff options
| author | wtj <zhangwt1997@gmail.com> | 2022-10-13 17:00:36 +0800 |
|---|---|---|
| committer | wtj <zhangwt1997@gmail.com> | 2022-10-14 00:10:04 +0800 |
| commit | 519125640035c66f906feb3455891ae9b41b299d (patch) | |
| tree | f88c49ab82baa59546e95db1d5f3e86462de60dd /compiler/rustc_codegen_llvm/src/back | |
| parent | 4891d57f7aab37b5d6a84f2901c0bb8903111d53 (diff) | |
| download | rust-519125640035c66f906feb3455891ae9b41b299d.tar.gz rust-519125640035c66f906feb3455891ae9b41b299d.zip | |
fix a typo
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/write.rs | 2 |
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."); |
