about summary refs log tree commit diff
path: root/compiler/rustc_symbol_mangling/src
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-11-21 21:46:17 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-11-21 22:11:08 +0100
commitc089a162d80dbbcc0543649fa78ccabac569db81 (patch)
treed1fd132db609a56ae341b59f30bdbf215c183bda /compiler/rustc_symbol_mangling/src
parent097261f241d0295a84a1fc754639e58202ea7e8e (diff)
downloadrust-c089a162d80dbbcc0543649fa78ccabac569db81.tar.gz
rust-c089a162d80dbbcc0543649fa78ccabac569db81.zip
Fix some unnecessary casts
`x clippy compiler -Aclippy::all -Wclippy::unnecessary_cast --fix`
with some manual review to ensure every fix is correct.
Diffstat (limited to 'compiler/rustc_symbol_mangling/src')
-rw-r--r--compiler/rustc_symbol_mangling/src/v0.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_symbol_mangling/src/v0.rs b/compiler/rustc_symbol_mangling/src/v0.rs
index 01cbee3a715..88989806997 100644
--- a/compiler/rustc_symbol_mangling/src/v0.rs
+++ b/compiler/rustc_symbol_mangling/src/v0.rs
@@ -189,7 +189,7 @@ impl<'tcx> SymbolMangler<'tcx> {
         self.push("N");
         self.out.push(ns);
         print_prefix(self)?;
-        self.push_disambiguator(disambiguator as u64);
+        self.push_disambiguator(disambiguator);
         self.push_ident(name);
         Ok(())
     }