disable sink inference, only enable it for the stdlib. Reason: better source code compatibility (#15105)

This commit is contained in:
Andreas Rumpf 2020-07-28 19:18:46 +02:00 • committed by GitHub
commit 86c9b78339
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 5 deletions

View file

@ -265,6 +265,10 @@ proc mydiv(a, b): int {.raises: [].} =
- Removed the `--oldast` switch.
- `$getType(untyped)` is now "untyped" instead of "expr", `$getType(typed)` is
now "typed" instead of "stmt".
- Sink inference is now disabled per default and has to enabled explicitly via
`--sinkInference:on`. *Note*: For the standard library sink inference remains
enabled. This change is most relevant for the `--gc:arc`, `--gc:orc` memory
management modes.
## Tool changes