Skip to content

Commit aa85ef7

Browse files
committed
this makes short unsafe fn less ergonomic
1 parent 77a9992 commit aa85ef7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

text/0000-unsafe-block-in-unsafe-fn.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ Even later, it might be desirable to turn this warning into an error.
120120

121121
This new warning will likely fire for the vast majority of `unsafe fn` out there.
122122

123+
Many `unsafe fn` are actually rather short (no more than 3 lines) and will
124+
likely end up just being one large `unsafe` block. This change would make such
125+
functions less ergonomic to write.
126+
123127
# Rationale and alternatives
124128
[rationale-and-alternatives]: #rationale-and-alternatives
125129

0 commit comments

Comments
 (0)