Project

General

Profile

« Previous | Next » 

Revision efb2ba33

Added by alanwu (Alan Wu) 2 months ago

HIR printing: Assign stable address to pointers when first seen

This gives output stability while still showing address equality and
inequality.

This mapping mechanism is only turned on for FunctionPrinter, so
implementation of Display and Debug can share the same code but not go
through the mapping process. Outside of cfg!(test) we don't want
and need to stabilize the addresses.