@@ -145,11 +145,11 @@ macro_rules! assert_ne {
145
145
/// # Uses
146
146
///
147
147
/// Unlike [`assert!`], `debug_assert!` statements are only enabled in non
148
- /// optimized builds by default. An optimized build will omit all
148
+ /// optimized builds by default. An optimized build will not execute
149
149
/// `debug_assert!` statements unless `-C debug-assertions` is passed to the
150
150
/// compiler. This makes `debug_assert!` useful for checks that are too
151
151
/// expensive to be present in a release build but may be helpful during
152
- /// development.
152
+ /// development. The result of expanding `debug_assert!` is always type checked.
153
153
///
154
154
/// An unchecked assertion allows a program in an inconsistent state to keep
155
155
/// running, which might have unexpected consequences but does not introduce
@@ -190,11 +190,11 @@ macro_rules! debug_assert {
190
190
/// debug representations.
191
191
///
192
192
/// Unlike [`assert_eq!`], `debug_assert_eq!` statements are only enabled in non
193
- /// optimized builds by default. An optimized build will omit all
193
+ /// optimized builds by default. An optimized build will not execute
194
194
/// `debug_assert_eq!` statements unless `-C debug-assertions` is passed to the
195
195
/// compiler. This makes `debug_assert_eq!` useful for checks that are too
196
196
/// expensive to be present in a release build but may be helpful during
197
- /// development.
197
+ /// development. The result of expanding `debug_assert_eq!` is always type checked.
198
198
///
199
199
/// [`assert_eq!`]: ../std/macro.assert_eq.html
200
200
///
@@ -217,11 +217,11 @@ macro_rules! debug_assert_eq {
217
217
/// debug representations.
218
218
///
219
219
/// Unlike [`assert_ne!`], `debug_assert_ne!` statements are only enabled in non
220
- /// optimized builds by default. An optimized build will omit all
220
+ /// optimized builds by default. An optimized build will not execute
221
221
/// `debug_assert_ne!` statements unless `-C debug-assertions` is passed to the
222
222
/// compiler. This makes `debug_assert_ne!` useful for checks that are too
223
223
/// expensive to be present in a release build but may be helpful during
224
- /// development.
224
+ /// development. The result of expanding `debug_assert_ne!` is always type checked.
225
225
///
226
226
/// [`assert_ne!`]: ../std/macro.assert_ne.html
227
227
///
0 commit comments