You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The StrInterner from librustc has two conflicting methods:
/// Returns this string with lifetime tied to the interner.
/// Since strings may never be removed from the interner,
/// this is safe.
fn get_ref<'a>(&'a self, idx: Name) -> &'a str;
And
fn clear(&self);
The text was updated successfully, but these errors were encountered:
The string slices returned by `get_ref` can actually be
invalidated by calling `clear`. Since this method is unused,
it is easiest to simply remove it.
Closesrust-lang#17181
The `StrInterner::clear()` method takes self immutably but can invalidate references returned by `StrInterner::get_ref`. Since `get_ref` is unused, just remove it.
Closes#17181
The StrInterner from
librustc
has two conflicting methods:And
The text was updated successfully, but these errors were encountered: