rename durability_last_changed_revision to last_changed_revision

The old name was really awkward.
This commit is contained in:
Niko Matsakis 2019-06-24 18:05:24 -04:00
parent e796af2e7a
commit ccb85989bc
2 changed files with 2 additions and 4 deletions

View file

@ -622,9 +622,7 @@ where
/// True if this memo should still be considered constant
/// (presuming it ever was).
fn is_still_constant(&self, db: &DB) -> bool {
let last_changed = db
.salsa_runtime()
.durability_last_changed_revision(self.durability);
let last_changed = db.salsa_runtime().last_changed_revision(self.durability);
debug!(
"is_still_constant(last_changed={:?} <= verified_at={:?}) = {:?}",
last_changed,

View file

@ -166,7 +166,7 @@ where
/// value may have changed, which allows us to skip walking its
/// dependencies.
#[inline]
pub(crate) fn durability_last_changed_revision(&self, d: Durability) -> Revision {
pub(crate) fn last_changed_revision(&self, d: Durability) -> Revision {
self.shared_state.revisions[d.index()].load()
}