Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Conversation

@lopopolo
Copy link
Member

rust-analyzer has a known limitation where it will only load Rust files (those ending in a .rs extension) when parsing include! macros:

Move mock time into tests/mock.rs and make some tweaks to the source so it compiles in both integration tests, unit tests, and doctests.

This has the added benefit of letting VSCode apply syntax highlighting to the macros.

@lopopolo lopopolo added A-formatter Area: strftime formatting. C-quality Category: Refactoring, cleanup, and quality improvements. labels Mar 20, 2025
@lopopolo lopopolo requested a review from x-hgg-x March 20, 2025 18:02
rust-analyzer has a known limitation where it will only load Rust files
(those ending in a `.rs` extension) when parsing `include!` macros:

- rust-lang/rust-analyzer#17828 (comment)

Move mock time into `tests/mock.rs` and make some tweaks to the source
so it compiles in both integration tests, unit tests, and doctests.

This has the added benefit of letting VSCode apply syntax highlighting
to the macros.
@lopopolo lopopolo force-pushed the dev/lopopolo-ra-warnings branch from 97c4dc2 to 185608c Compare March 22, 2025 12:28
@lopopolo lopopolo merged commit 2efd305 into trunk Mar 22, 2025
13 checks passed
@lopopolo lopopolo deleted the dev/lopopolo-ra-warnings branch March 22, 2025 12:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A-formatter Area: strftime formatting. C-quality Category: Refactoring, cleanup, and quality improvements.

Development

Successfully merging this pull request may close these issues.

3 participants