about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-02-26 04:15:04 +0100
committerGitHub <noreply@github.com>2025-02-26 04:15:04 +0100
commit292c003ce75a0bb07bcdf6b15149e5b16dcf0745 (patch)
tree448aa3966751adde5ff0068ce6e67f087b6f3708 /compiler/rustc_monomorphize
parentef539221f629304035d2dab7cedaa2b4de3c107f (diff)
parent8467a7658133fdc274e18f36357768000a3a7519 (diff)
downloadrust-292c003ce75a0bb07bcdf6b15149e5b16dcf0745.tar.gz
rust-292c003ce75a0bb07bcdf6b15149e5b16dcf0745.zip
Rollup merge of #137529 - klensy:unused3, r=lcnr
remove few unused args
Diffstat (limited to 'compiler/rustc_monomorphize')
-rw-r--r--compiler/rustc_monomorphize/src/collector.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs
index d7cb8f18f82..a75c20c1972 100644
--- a/compiler/rustc_monomorphize/src/collector.rs
+++ b/compiler/rustc_monomorphize/src/collector.rs
@@ -751,7 +751,7 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirUsedCollector<'a, 'tcx> {
     /// This does not walk the MIR of the constant as that is not needed for codegen, all we need is
     /// to ensure that the constant evaluates successfully and walk the result.
     #[instrument(skip(self), level = "debug")]
-    fn visit_const_operand(&mut self, constant: &mir::ConstOperand<'tcx>, location: Location) {
+    fn visit_const_operand(&mut self, constant: &mir::ConstOperand<'tcx>, _location: Location) {
         // No `super_constant` as we don't care about `visit_ty`/`visit_ty_const`.
         let Some(val) = self.eval_constant(constant) else { return };
         collect_const_value(self.tcx, val, self.used_items);