disable shortening if Env.empty

git-svn-id: http://caml.inria.fr/svn/ocaml/branches/short-paths@12075 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Jacques Garrigue 2012-01-24 01:33:47 +00:00
parent 477b2dd743
commit 91172c1d7b
1 changed files with 3 additions and 2 deletions

View File

@ -208,8 +208,9 @@ let rec path_length = function
let same_type t t' = repr t == repr t'
let rec best_type_path p =
if !Clflags.real_paths then p else
try
if !Clflags.real_paths || !printing_env == Env.empty || path_length p = 1
then p
else try
let desc = Env.find_type p !printing_env in
if desc.type_private = Private then p else
match desc.type_manifest with