We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0525bb7 commit 0c18da5Copy full SHA for 0c18da5
src/libcore/intrinsics.rs
@@ -259,7 +259,11 @@ extern "rust-intrinsic" {
259
/// Inform the optimizer that a condition is always true.
260
/// If the condition is false, the behavior is undefined.
261
///
262
- /// No code is generated for this intrisic.
+ /// No code is generated for this intrinsic, but the optimizer will try
263
+ /// to preserve it (and its condition) between passes, which may interfere
264
+ /// with optimization of surrounding code and reduce performance. It should
265
+ /// not be used if the invariant can be discovered by the optimizer on its
266
+ /// own, or if it does not enable any significant optimizations.
267
#[cfg(not(stage0))]
268
pub fn assume(b: bool);
269
0 commit comments