Since https://github.com/rust-lang/rust/pull/82069 was merged, the 'this error originates in macro `<name>`) messages sometimes contain `$crate`, instead of the actual crate name. For example: https://github.com/rust-lang/rust/blob/9daf546b77dbeab7754a80d7336cd8d00c6746e4/src/test/ui/bound-suggestions.stderr#L8 We should resolve these `$crate` identifiers to the actual crate name before displaying them to the user. cc @cjgillot