mark some unused variables

This commit is contained in:
Niko Matsakis 2022-08-03 08:51:14 -04:00
parent 41f9ca6462
commit e331f7102d

View file

@ -1,6 +1,6 @@
use crate::{ use crate::{
cycle::CycleRecoveryStrategy, cycle::CycleRecoveryStrategy,
ingredient::{Ingredient, MutIngredient}, ingredient::Ingredient,
key::{DatabaseKeyIndex, DependencyIndex}, key::{DatabaseKeyIndex, DependencyIndex},
runtime::{local_state::QueryInputs, Runtime}, runtime::{local_state::QueryInputs, Runtime},
AsId, IngredientIndex, Revision, AsId, IngredientIndex, Revision,
@ -37,7 +37,7 @@ where
} }
} }
pub fn new_input(&mut self, runtime: &mut Runtime) -> Id { pub fn new_input(&mut self, _runtime: &mut Runtime) -> Id {
let next_id = self.counter; let next_id = self.counter;
self.counter += 1; self.counter += 1;
Id::from_id(crate::Id::from(next_id)) Id::from_id(crate::Id::from(next_id))
@ -48,7 +48,7 @@ impl<DB: ?Sized, Id> Ingredient<DB> for InputIngredient<Id>
where where
Id: InputId, Id: InputId,
{ {
fn maybe_changed_after(&self, db: &DB, input: DependencyIndex, revision: Revision) -> bool { fn maybe_changed_after(&self, _db: &DB, _input: DependencyIndex, _revision: Revision) -> bool {
// Input ingredients are just a counter, they store no data, they are immortal. // Input ingredients are just a counter, they store no data, they are immortal.
// Their *fields* are stored in function ingredients elsewhere. // Their *fields* are stored in function ingredients elsewhere.
false false