d: Remove visibility and lookup deprecation
authorIain Buclaw <ibuclaw@gdcproject.org>
Mon, 11 Jan 2021 09:53:18 +0000 (10:53 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Mon, 11 Jan 2021 11:21:03 +0000 (12:21 +0100)
commit928e96bbe98bafff18f11a7351cf89592967b061
treed6a7b3082fec5da6bb9465ab4050a3470d18ab60
parent300a3ce5c5695eb1a7c0476e9d1b45420a463248
d: Remove visibility and lookup deprecation

The deprecation phase for access checks is finished.

The `-ftransition=import` and `-ftransition=checkimports` switches no
longer have an effect and are now removed.  Symbols that are not visible
in a particular scope will no longer be found by the compiler.

Reviewed-on: https://github.com/dlang/dmd/pull/12124

gcc/d/ChangeLog:

* dmd/MERGE: Merge upstream dmd 2d3d13748.
* d-lang.cc (d_handle_option): Remove OPT_ftransition_checkimports and
OPT_ftransition_import.
* gdc.texi (Warnings): Remove documentation for -ftransition=import
and -ftransition=checkimports.
* lang.opt (ftransition=checkimports): Remove.
(ftransition=import): Remove.
75 files changed:
gcc/d/d-lang.cc
gcc/d/dmd/MERGE
gcc/d/dmd/access.c
gcc/d/dmd/dscope.c
gcc/d/dmd/dsymbol.c
gcc/d/dmd/expression.c
gcc/d/dmd/expression.h
gcc/d/dmd/expressionsem.c
gcc/d/dmd/globals.h
gcc/d/dmd/mtype.c
gcc/d/dmd/parse.c
gcc/d/dmd/scope.h
gcc/d/dmd/traits.c
gcc/d/gdc.texi
gcc/d/lang.opt
gcc/testsuite/gdc.test/compilable/checkimports3.d [new file with mode: 0644]
gcc/testsuite/gdc.test/compilable/ddoc14633.d
gcc/testsuite/gdc.test/compilable/deprecate14283.d
gcc/testsuite/gdc.test/compilable/diag11066.d
gcc/testsuite/gdc.test/compilable/diag12598.d [new file with mode: 0644]
gcc/testsuite/gdc.test/compilable/diag3243.d
gcc/testsuite/gdc.test/compilable/dip22d.d [new file with mode: 0644]
gcc/testsuite/gdc.test/compilable/imports/checkimports3a.d [new file with mode: 0644]
gcc/testsuite/gdc.test/compilable/imports/checkimports3b.d [new file with mode: 0644]
gcc/testsuite/gdc.test/compilable/imports/checkimports3c.d [new file with mode: 0644]
gcc/testsuite/gdc.test/compilable/imports/diag12598a.d [new file with mode: 0644]
gcc/testsuite/gdc.test/compilable/imports/dip22d.d [new file with mode: 0644]
gcc/testsuite/gdc.test/compilable/imports/dip22e.d [new file with mode: 0644]
gcc/testsuite/gdc.test/compilable/imports/imp15925.d [deleted file]
gcc/testsuite/gdc.test/compilable/test12567a.d
gcc/testsuite/gdc.test/compilable/test12567b.d
gcc/testsuite/gdc.test/compilable/test12567d.d
gcc/testsuite/gdc.test/compilable/test12567e.d
gcc/testsuite/gdc.test/compilable/test13053.d
gcc/testsuite/gdc.test/compilable/test14375.d
gcc/testsuite/gdc.test/compilable/test15785.d
gcc/testsuite/gdc.test/compilable/test15856.d
gcc/testsuite/gdc.test/compilable/test15925.d [deleted file]
gcc/testsuite/gdc.test/compilable/test17791.d
gcc/testsuite/gdc.test/compilable/test7815.d
gcc/testsuite/gdc.test/compilable/testcheckimports.d
gcc/testsuite/gdc.test/compilable/warn3882.d
gcc/testsuite/gdc.test/fail_compilation/checkimports1a.d [deleted file]
gcc/testsuite/gdc.test/fail_compilation/checkimports1b.d [deleted file]
gcc/testsuite/gdc.test/fail_compilation/checkimports1c.d [deleted file]
gcc/testsuite/gdc.test/fail_compilation/checkimports2a.d
gcc/testsuite/gdc.test/fail_compilation/checkimports2b.d
gcc/testsuite/gdc.test/fail_compilation/checkimports2c.d
gcc/testsuite/gdc.test/fail_compilation/checkimports3.d [deleted file]
gcc/testsuite/gdc.test/fail_compilation/diag10169.d
gcc/testsuite/gdc.test/fail_compilation/diag12598.d [deleted file]
gcc/testsuite/gdc.test/fail_compilation/diag5385.d
gcc/testsuite/gdc.test/fail_compilation/dip22a.d
gcc/testsuite/gdc.test/fail_compilation/dip22b.d
gcc/testsuite/gdc.test/fail_compilation/dip22d.d [deleted file]
gcc/testsuite/gdc.test/fail_compilation/dip22e.d
gcc/testsuite/gdc.test/fail_compilation/fail10528.d
gcc/testsuite/gdc.test/fail_compilation/fail262.d
gcc/testsuite/gdc.test/fail_compilation/fail313.d
gcc/testsuite/gdc.test/fail_compilation/imports/checkimports3a.d [deleted file]
gcc/testsuite/gdc.test/fail_compilation/imports/checkimports3b.d [deleted file]
gcc/testsuite/gdc.test/fail_compilation/imports/checkimports3c.d [deleted file]
gcc/testsuite/gdc.test/fail_compilation/imports/diag12598a.d [deleted file]
gcc/testsuite/gdc.test/fail_compilation/imports/imp15925.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/imports/imp21353.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/imports/test15117a.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/lookup.d
gcc/testsuite/gdc.test/fail_compilation/test143.d
gcc/testsuite/gdc.test/fail_compilation/test15117.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/test15785.d
gcc/testsuite/gdc.test/fail_compilation/test15785b.d
gcc/testsuite/gdc.test/fail_compilation/test15897.d
gcc/testsuite/gdc.test/fail_compilation/test15925.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/test21353.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/test314.d