Skip to content

Develop a more reliable mechanism for overriding std macros #2275

@zhassan-aws

Description

@zhassan-aws

Motivation: The current mechanism that Kani uses for overriding std macros has proven to be very flaky, and doesn't work in some cases (e.g. #2187). We need to develop a more stable mechanism that is not prone to such issues.

Proposed change: Use the compiler driver's query mechanism to provide our own definitions of the macros, similar to how rustc handles builtin macros: https://github.com/rust-lang/rust/blob/160c2ebeca7b4e616962134f230de754fa5433b1/compiler/rustc_builtin_macros/src/lib.rs#L73.

Metadata

Metadata

Assignees

Labels

Z-Kani CompilerIssues that require some changes to the compiler[C] InternalTracks some internal work. I.e.: Users should not be affected.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions