Closed
Description
The CI build of my project Sausagewiki has started failing with the beta compiler channel. See the build log output:
error[E0433]: failed to resolve. Use of undeclared type or module `articles`
--> src/state.rs:326:22
|
326 | #[derive(Insertable)]
| ^^^^^^^^^^ Use of undeclared type or module `articles`
It still builds with the stable compiler, so this unfortunately looks like a regression in rustc.
This project makes substantial use of code generation in build.rs
and with procedural derive
macros.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
petrochenkov commentedon Aug 11, 2018
This is most likely a consequence of #51952 and the error originates in diesel_derives.
It's strange however that this specific case is reported as an error and not as a lint warning (like many other warnings that can be seen in the log).
The issue is already fixed on diesel master, so perhaps switching to it will help as a workaround.
maghoff commentedon Aug 11, 2018
Thanks for the feedback :)
I tried to see if I could get the problems to disappear with
[patch]
-ing the diesel dependencies in my Cargo.toml, but gave up after not managing to make it work. In other words, I was unable to apply the workaround. It doesn't matter much in the end as I have no particular use for it working in with the beta compiler.However, I am very interested in my project not breaking with the stable compiler in the future :) I hope it will not be necessary for me to change anything for this to be the case.
petrochenkov commentedon Aug 20, 2018
Fixed in #53516
Auto merge of #53516 - petrochenkov:derregr, r=estebank
maghoff commentedon Aug 27, 2018
I can verify that my project now builds successfully with the beta channel.