Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Résumé
J'ai fais une autre pull request, pour la version d'OCaml 5.1, mais cela ne fonctionne pas. J'ai donné les explications dans l'autre pull request.
Cette branche fonctionne avec ocaml > 4.13.1 et < 5.1.0.
Ocaml 4.13 : modification d'un type
Vient de ce changement :
ocaml/ocaml#10174
Avant :
Après :
J'ai donc modifié en ignorant le second argument et ça marche :
Après j'ai pas trop compris le message de la PR, mais ça dit bien que c'est un extra argument:
Supression d'un warning
Simple changement d'appel de fonction :
Les labels étaient pas préciser ce qui cause maintenant un warning
mark_loops erreurs
printtyp.mark_loops a disparu à ce commit là : https://github.com/ocaml/ocaml/pull/10488/files
Updated ocamldoc to the new API by: (1) removing unncessary calls to Printtyp.mark_loops which were handled by the formatters; and
(2) replacing Printtyp.type_scheme_max ~b_reset_names: false with Printtyp.shared_type_scheme.
Files modified:
Il y a certain morceaux de code qui cause des erreurs quasi identique dans odoc_str.ml, ceux-ci ont été modifié. J'ai donc juste eu à copié les changement.
Y a un autre morceau de code qui n'était pas quasi identique mais ressemblait.
J'ai suivi la recommandation : (2) replacing Printtyp.type_scheme_max ~b_reset_names: false with Printtyp.shared_type_scheme
En ce qui concerne la supression de Printtyp.mark_loops t, c'est dis dans le premier conseil qu'il faut suprimé quand c'est "handled by the formatters", et juste après notre Printtyp.mark_loops t, y a un fmt :
Format.fprintf fmt "@[<hov 2>%s%s%a%s@] ->@ "
Donc j'ai supprimé.