pub struct Legacy {
pub since: String,
pub kind: LegacyKind,
pub span: Span,
}Expand description
A bidama’s rename ledger, declared at its top level. Two forms:
legacy_names(since, prefix): the bidama’s definitions were once all namedprefix_x. From versionsince, every definitionxis also reachable asprefix_x— a BRIDGE for callers still on the old spelling, open while the bidama’s version is at leastsinceand below the next minor — and a definition that must keep its prefix (the stripped name is a reserved word or a builtin the bidama uses bare) is also reachable by its stripped name, for good.legacy_names(since, [["old", "home::new"], …]): definitions the bidama MOVED to another bidama.oldstays a bridge tohome::newover the same window, so a twin is moved, not copied.legacy_names(since, [:first, …]): definitions that share a builtin’s name and were reached bare under the flat runtime. Over the same window an importer’s bare call of one is B0012; outside it, and for every definition not listed, the importer’s bare name is the builtin.
Like use, it is consumed by the resolver and evaluates to nothing; an
expired ledger stays in the source, and powers the fix for a late caller.
Fields§
§since: String§kind: LegacyKind§span: SpanTrait Implementations§
impl StructuralPartialEq for Legacy
Auto Trait Implementations§
impl Freeze for Legacy
impl RefUnwindSafe for Legacy
impl Send for Legacy
impl Sync for Legacy
impl Unpin for Legacy
impl UnsafeUnpin for Legacy
impl UnwindSafe for Legacy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more