[Rust] macro expansion failed warnings 2
- Dominant language
- CodeQL
- Stars
- 10.1k
- Forks
- 2.1k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 141
Description
**Description of the issue**
Similarly to https://github.com/github/codeql/issues/19966 I'm also hitting quite a few macro expansion failed warnings:
```
WARN /home/sg/dev/cosmwasm/contracts/ibc-reflect/src/msg.rs:14:21: macro expansion failed: the macro 'vec' expands to ERROR but a Expr was expected
```
As I don't know whether the bugs share a common root cause, I'm opening this issue.
**Reproduction steps**
```
git clone https://github.com/CosmWasm/cosmwasm.git
git checkout cf413c5ad6a58a87e0be894584f01506f3b2e0af^
codeql database create --language=rust "cosmwasm-db-cf413c5ad6a58a87e0be894584f01506f3b2e0af^" --overwrite
```
**Files**
[database-create-20250701.203330.097.log](https://github.com/user-attachments/files/21076863/database-create-20250701.203330.097.log)
[database-index-files-20250701.203333.834.log](https://github.com/user-attachments/files/21076864/database-index-files-20250701.203333.834.log)
[cosmwasm-db-cf413c5ad6a58a87e0be894584f01506f3b2e0af^.zip](https://github.com/intrigus-lgtm/file-dump/releases/tag/cosmwasm-db-cf413c5ad6a58a87e0be894584f01506f3b2e0af.zip)
Contributor guide
Research direction
Reproduce the report using the listed git checkout and CodeQL database-create command, then inspect the attached database-create and database-index-files logs alongside the database archive. Trace the reported macro expansion warnings in the reproduction and determine whether they share a root cause; done means the cause and a verified resolution are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100