Skip to content

Commit bac6d9a

Browse files
authored
Make Base.donotdelete public (#55774)
I rely on `Base.donotdelete` in [Chairmarks.jl](https://chairmarks.lilithhafner.com) and I'd like it to be public. I imagine that other benchmarking tools also rely on it. It's been around since 1.8 (see also: #55773) and I think we should commit to keeping it functional for the rest of 1.x.
1 parent c0cc1e1 commit bac6d9a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ New library functions
4646

4747
* `ispositive(::Real)` and `isnegative(::Real)` are provided for performance and convenience ([#53677]).
4848
* Exporting function `fieldindex` to get the index of a struct's field ([#58119]).
49+
* `Base.donotdelete` is now public. It prevents deadcode elemination of its arguments ([#55774]).
4950

5051
New library features
5152
--------------------

base/public.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,5 @@ public
125125
notnothing,
126126
runtests,
127127
text_colors,
128-
depwarn
128+
depwarn,
129+
donotdelete

0 commit comments

Comments
 (0)