Closed
Description
Hi,
I have a crate that CI fails for all the tests on the latest nightly with the following output:
--> refinery/tests/mod_migrations/mod.rs:2:5
|
2 | refinery::include_migration_mods!("./tests/mod_migrations");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: to create the module `V2__add_cars_table`, create file "refinery/tests/mod_migrations/migrations/V2__add_cars_table.rs"
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0583]: file not found for module `V1__initial`
--> refinery/tests/mod_migrations/mod.rs:2:5
|
2 | refinery::include_migration_mods!("./tests/mod_migrations");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: to create the module `V1__initial`, create file "refinery/tests/mod_migrations/migrations/V1__initial.rs"
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0583]: file not found for module `V4__add_year_to_motos_table`
--> refinery/tests/mod_migrations/mod.rs:2:5
|
2 | refinery::include_migration_mods!("./tests/mod_migrations");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: to create the module `V4__add_year_to_motos_table`, create file "refinery/tests/mod_migrations/migrations/V4__add_year_to_motos_table.rs"
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0583]: file not found for module `V3__add_brand_to_cars_table`
--> refinery/tests/mod_migrations/mod.rs:2:5
|
2 | refinery::include_migration_mods!("./tests/mod_migrations");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: to create the module `V3__add_brand_to_cars_table`, create file "refinery/tests/mod_migrations/migrations/V3__add_brand_to_cars_table.rs"
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function `migration` in module `V2__add_cars_table`
--> refinery/tests/mod_migrations/mod.rs:2:5
|
2 | refinery::include_migration_mods!("./tests/mod_migrations");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `V2__add_cars_table`
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function `migration` in module `V1__initial`
--> refinery/tests/mod_migrations/mod.rs:2:5
|
2 | refinery::include_migration_mods!("./tests/mod_migrations");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `V1__initial`
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function `migration` in module `V4__add_year_to_motos_table`
--> refinery/tests/mod_migrations/mod.rs:2:5
|
2 | refinery::include_migration_mods!("./tests/mod_migrations");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `V4__add_year_to_motos_table`
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function `migration` in module `V3__add_brand_to_cars_table`
--> refinery/tests/mod_migrations/mod.rs:2:5
|
2 | refinery::include_migration_mods!("./tests/mod_migrations");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `V3__add_brand_to_cars_table`
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
the refered code is here and the macro used is defined here the same tests pass on stable channel.
If there is there is anything else that I can do to help, I am happy to contribute
thanks!
Metadata
Metadata
Assignees
Labels
Area: Compiler frontend (errors, parsing and HIR)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Category: This is a bug.Helping to "clean up" bugs with minimal examples and bisectionsHigh priorityRelevant to the compiler team, which will review and decide on the PR/issue.Performance or correctness regression from stable to nightly.