diff options
| author | Kai Luo <gluokai@gmail.com> | 2023-12-18 09:41:36 +0800 |
|---|---|---|
| committer | Kai Luo <gluokai@gmail.com> | 2023-12-18 09:41:36 +0800 |
| commit | a8e1da317104cf33b9485be29c10da57c648b873 (patch) | |
| tree | 8e3c9b987d69b5afad9e4153a2840e8c4fc96c3d /compiler/rustc_codegen_ssa/src | |
| parent | ce9a02eaac80ad5f4843dd93228e72f04ec1cb4c (diff) | |
Address comment
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/metadata.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/metadata.rs b/compiler/rustc_codegen_ssa/src/back/metadata.rs index 06ef0be4615..b683e1b45a8 100644 --- a/compiler/rustc_codegen_ssa/src/back/metadata.rs +++ b/compiler/rustc_codegen_ssa/src/back/metadata.rs @@ -603,7 +603,7 @@ pub fn create_compressed_metadata_file_for_xcoff( section: SymbolSection::Section(data_section), flags: SymbolFlags::None, }); - let len = data.len() as u32; + let len: u32 = data.len().try_into().unwrap(); let offset = file.append_section_data(section, &len.to_be_bytes(), 1); // Add a symbol referring to the rustc metadata. file.add_symbol(Symbol { |
