Skip to content

Commit

Permalink
Rollup merge of rust-lang#103015 - whentojump:patch, r=compiler-errors
Browse files Browse the repository at this point in the history
fix a typo
  • Loading branch information
albertlarsan68 authored Oct 14, 2022
2 parents 639095b + 5191256 commit ecb1bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_llvm/src/back/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit ecb1bfd

Please sign in to comment.