github / github/codeql

[Rust] macro expansion failed warnings 2

Abierto
#19,982 11 comentarios 1 reacción 0 asignados Ver en GitHub
question
Lenguaje dominante
CodeQL
Estrellas
10.1k
Forks
2.1k
Merge medio
2 d 15 h
PR fusionados (30 d)
141

Descripción

**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)

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
rust
Área
compilers, devtools
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.