Control: reassign -1 dh-rust
Control: affects -1 src:sass-grass

[replying to bugreport againg, since this now seems a bug in dh-rust]

Quoting Jonas Smedegaard (2026-06-23 11:50:32)
> Quoting Santiago Vila (2026-06-23 02:33:36)
> > Explanation from my asistant:
[...]
> > The simple fix without refactoring the Logger trait: Avoid
> > implementing Logger in the tests at all. Only two test files (warn.rs
> > and debug.rs) actually use TestLogger. Instead of a custom logger
> > implementation that runs into the type identity issue:
[...]
> > -------------------------------------------------------------------------------
> > 
> > I asked it to implement the "simple fix" and the result is attached.
[...] 
> That was very helpful, and I think I now found an even better patch.
> 
> Can I ask you to test the attached patch?

That patch turned out (as discussed privately) to not work, and my
further examination revealed that the likely deeper cause is that
dh-rust passes the custom option -Zavoid-dev-deps when building tests.
That option was carried over when dh-rust was forked from dh-cargo, and
there it makes sense, since **dh-cargo ignores tests during build**.
dh-rust was extended to check tests and used same arguments, where that
one argument is likely causing trouble for this very scenario of
reusing an object compiled during build when compiling tests, where a
hint about build-dependency guides the compiler to conclude that it is
the same object that is needed, not wrongly a recompilation of it.

dh-rust 0.1.2 continues to pass option -Zavoid-dev-deps during build
but no longer passes that option during test.


> (I am aware that you have offered me access, but it is much slower for
> me to figure that out than pass a patch to you, so I hope that is ok)

What is slower for me is not the speed of compilation nor the speed of
execution, but the speed of me adapting to the format of execution: I
am familiar with pbuilder and have not yet wrapped my mind around
sbuild. I know that sbuild is supposed to be a piece of cake, and it
simply happens to be a cake that is alien for me just yet.

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/
 * Sponsorship: https://ko-fi.com/drjones

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature

Reply via email to