test reverse lookup after we have reused slots and the like

This commit is contained in:
Niko Matsakis 2019-03-22 05:19:46 -04:00
parent 791ec3065c
commit 6cf1ffd24a

View file

@ -105,4 +105,8 @@ fn discard_outdated() {
assert_ne!(foo_from_rev0, foo_from_rev1);
assert_ne!(foo_from_rev1, bar_from_rev1);
assert_ne!(foo_from_rev1, baz_from_rev1);
assert_eq!(db.lookup_intern_str(foo_from_rev1), "foo");
assert_eq!(db.lookup_intern_str(bar_from_rev1), "bar");
assert_eq!(db.lookup_intern_str(baz_from_rev1), "baz");
}