miniscule: fix edition fmt (#5167)

* miniscule: fix edition fmt

* fix: rust analyzer might enable this and hence cause red squiggles

Reduce the visual overload.

* fix/spellcheck/quirk: allow 124_123 numbers
This commit is contained in:
Bernhard Schuster
2022-03-21 14:00:59 +01:00
committed by GitHub
parent 189dfdc006
commit 0e34a8080f
3 changed files with 20 additions and 5 deletions
+4 -1
View File
@@ -67,7 +67,10 @@ pub(crate) fn gum(item: proc_macro::TokenStream, level: Level) -> proc_macro::To
let res = expander::Expander::new("gum")
.add_comment("Generated overseer code by `gum::warn!(..)`".to_owned())
.dry(!cfg!(feature = "expand"))
// `dry=true` until rust-analyzer can selectively disable features so it's
// not all red squiggles. Originally: `!cfg!(feature = "expand")`
// ISSUE: <https://github.com/rust-analyzer/rust-analyzer/issues/11777>
.dry(true)
.verbose(false)
.fmt(expander::Edition::_2021)
.maybe_write_to_out_dir(impl_gum2(item, level))