diff --git a/src/dune_rules/mdx.ml b/src/dune_rules/mdx.ml index 57884d4cc5f..4f65788121e 100644 --- a/src/dune_rules/mdx.ml +++ b/src/dune_rules/mdx.ml @@ -168,8 +168,6 @@ let decode = field "libraries" ~default:[] (Dune_lang.Syntax.since syntax (0, 2) >>> Dune_file.Lib_deps.decode Executable) - ~default:[] - >>> Dune_file.Lib_deps.decode Executable) in { loc; version; files; packages; deps; preludes; libraries; enabled_if }) diff --git a/test/blackbox-tests/test-cases/mdx-stanza/enabled-if-old-lang-dune.t/run.t b/test/blackbox-tests/test-cases/mdx-stanza/enabled-if-old-lang-dune.t/run.t index 9c28a38bffd..64364bbabd8 100644 --- a/test/blackbox-tests/test-cases/mdx-stanza/enabled-if-old-lang-dune.t/run.t +++ b/test/blackbox-tests/test-cases/mdx-stanza/enabled-if-old-lang-dune.t/run.t @@ -6,4 +6,4 @@ ^^^^^^^^^^^^^^^^^ Error: 'enabled_if' is only available since version 2.9 of the dune language. Please update your dune-project file to have (lang dune 2.9). - [1] \ No newline at end of file + [1]