From 92f9ce4edbe824a1aad005497557788acdaabe70 Mon Sep 17 00:00:00 2001 From: Jeremie Dimino Date: Fri, 19 Jan 2018 15:32:26 +0000 Subject: [PATCH] Fix the order of files in (diff file.ml file.ml.ppx-corrected) The generated correction must come after for promotion to work. --- src/super_context.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/super_context.ml b/src/super_context.ml index ace3b4bc..323a7bd5 100644 --- a/src/super_context.ml +++ b/src/super_context.ml @@ -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