<p dir="auto">Putting</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct Foo end
struct Bar end

for t in (Foo, Bar)
    @eval (::$t)(x) = 1
end"><pre class="notranslate"><code class="notranslate">struct Foo end
struct Bar end

for t in (Foo, Bar)
    @eval (::$t)(x) = 1
end
</code></pre></div>
<p dir="auto">in a a package and using the <code class="notranslate">--warn-overwrite=yes</code> option, Julia will warn with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: Method definition Any(Any) in module Dup at /Users/kristoffercarlsson/julia/Dup/src/Dup.jl:9 overwritten on the same line (check for duplicate calls to `include`).
WARNING: Method definition Any(Any) in module Dup at /Users/kristoffercarlsson/julia/Dup/src/Dup.jl:9 overwritten on the same line (check for duplicate calls to `include`)."><pre class="notranslate"><code class="notranslate">WARNING: Method definition Any(Any) in module Dup at /Users/kristoffercarlsson/julia/Dup/src/Dup.jl:9 overwritten on the same line (check for duplicate calls to `include`).
WARNING: Method definition Any(Any) in module Dup at /Users/kristoffercarlsson/julia/Dup/src/Dup.jl:9 overwritten on the same line (check for duplicate calls to `include`).
</code></pre></div>
<p dir="auto">I'm guessing this if from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="654927319" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/36609" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/36609/hovercard" href="https://github.com/JuliaLang/julia/pull/36609">#36609</a>.</p>
<p dir="auto">Looking at some random PkgEval log there are thousands of these warnings, e.g. <a href="https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/aa3a19f_vs_dd12291/ADCME.1.7.0-beta1-ef3861cb06.log" rel="nofollow">https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/aa3a19f_vs_dd12291/ADCME.1.7.0-beta1-ef3861cb06.log</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:81 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any, Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:98 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:98 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:103 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:110 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any, Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:114 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:95 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any...) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/pyfncall.jl:86 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:82 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:94 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **"><pre class="notranslate"><code class="notranslate">WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:81 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any, Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:98 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:98 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:103 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:110 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any, Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:114 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:95 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any...) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/pyfncall.jl:86 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:82 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:94 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **
</code></pre></div>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vtjnash/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vtjnash">@vtjnash</a></p>
<p dir="auto"><code class="notranslate">atstart()</code> function (or <code class="notranslate">atinit()</code>)<br>
similar to <code class="notranslate">atexit()</code>, but it runs the functions from Main just after reloading the system image or just after finishing the definition of a module</p>
<p dir="auto">The existing functions<br>
<code class="notranslate">reinit_stdio()</code> and <code class="notranslate">librandom_init()</code><br>
would be switch to being registered this way.</p>