Make alternative clause parser more flexible.

The spirit here is to make it easier to discover this syntax. People
  have different intuition about it and the single pipe may not be the
  most obvious one.

  It is however the recommended syntax, and the formatter will rewrite
  any of the other to it.
This commit is contained in:
KtorZ
2024-08-06 11:31:11 +02:00
parent 8c121f6d97
commit 1ae6640cd0
3 changed files with 206 additions and 1 deletions

View File

@@ -812,6 +812,10 @@ where
&mut self.data_types,
)?;
if name == "foo" {
println!("{:#?}", checked_module.ast);
}
if our_modules.contains(checked_module.name.as_str()) {
self.warnings.extend(warnings);
}