Fix the order of files in (diff file.ml file.ml.ppx-corrected)

The generated correction must come after for promotion to work.
This commit is contained in:
Jeremie Dimino 2018-01-19 15:32:26 +00:00
parent 9dd5ab74e4
commit 92f9ce4edb
1 changed files with 2 additions and 2 deletions

View File

@ -887,8 +887,8 @@ module PP = struct
[ build
; Build.return
(A.diff ~optional:true
(Path.extend_basename fn ~suffix:".ppx-corrected")
fn)
fn
(Path.extend_basename fn ~suffix:".ppx-corrected"))
]
let lint_module sctx ~(source : Module.t) ~(ast : Module.t) ~dir