Skip to content

Commit

Permalink
Nicer way to gate the feature
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Kubica <[email protected]>
  • Loading branch information
Leonidas-from-XIV authored and emillon committed Apr 11, 2023
1 parent a12ebb5 commit 978e107
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/dune_rules/dune_file.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1740,15 +1740,15 @@ module Rule = struct
~hints:
(User_message.did_you_mean s
~candidates:(String.Map.keys atom_table))
| Some Field -> (
match s with
| "package" ->
let* () =
| Some Field ->
let* () =
match s with
| "package" ->
Dune_lang.Syntax.since ~what:"'package' in short-form 'rule'"
Stanza.syntax (3, 8)
in
fields long_form
| _ -> fields long_form)
| _ -> return ()
in
fields long_form
| Some Action -> short_form)
| sexp ->
User_error.raise ~loc:(Dune_lang.Ast.loc sexp)
Expand Down

0 comments on commit 978e107

Please sign in to comment.