File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2597,7 +2597,7 @@ pub(crate) const fn debug_assertions() -> bool {
25972597/// These checks are behind a condition which is evaluated at codegen time, not expansion time like
25982598/// [`debug_assert`]. This means that a standard library built with optimizations and debug
25992599/// assertions disabled will have these checks optimized out of its monomorphizations, but if a
2600- /// a caller of the standard library has debug assertions enabled and monomorphizes an expansion of
2600+ /// caller of the standard library has debug assertions enabled and monomorphizes an expansion of
26012601/// this macro, that monomorphization will contain the check.
26022602///
26032603/// Since these checks cannot be optimized out in MIR, some care must be taken in both call and
@@ -2606,8 +2606,8 @@ pub(crate) const fn debug_assertions() -> bool {
26062606/// combination of properties ensures that the code for the checks is only compiled once, and has a
26072607/// minimal impact on the caller's code size.
26082608///
2609- /// Caller should also introducing any other `let` bindings or any code outside this macro in order
2610- /// to call it. Since the precompiled standard library is built with full debuginfo and these
2609+ /// Callers should also avoid introducing any other `let` bindings or any code outside this macro in
2610+ /// order to call it. Since the precompiled standard library is built with full debuginfo and these
26112611/// variables cannot be optimized out in MIR, an innocent-looking `let` can produce enough
26122612/// debuginfo to have a measurable compile-time impact on debug builds.
26132613///
You can’t perform that action at this time.
0 commit comments