Thread (6 messages) 6 messages, 3 authors, 21d ago

Re: [PATCH v2] rust: add mark_used macro

flat view

From: FUJITA Tomonori <hidden>
Date: 2026-10-01 21:37:20
Also in: rust-for-linux

On Thu, 1 Oct 2026 15:02:40 +0200
Miguel Ojeda [off-list ref] wrote:
On Thu, Oct 1, 2026 at 2:04 PM FUJITA Tomonori [off-list ref] wrote:
quoted
Miguel, what do you think?
I suggested it due to seeing the multi-line combination of `if false`
and `_ = ...`, and the fact that we will probably want to reuse the
combination in other macros. It makes the concept more explicit,
easier to grep, and follows other cases we have created for similar
things like this (e.g. `static_assert!`).

Having said that, I do prefer using plain language instead of macros
where possible/reasonable, i.e. I don't like introducing macros and
more concepts in general just for the sake of it. On the other hand,
sometimes language features aren't the best spellings to be honest
(like the `const _` "abuse") and some people prefer abbreviations
(like the discussion on `SZ_*` constants).

Either way is fine, obviously.
Thanks, I'll drop it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help