File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 0525bb76690232ce1ce2a3918ce031e2058c41dc
2
+ refs/heads/master: 0c18da503ca674eb4cbf8504b52afb2d7c242ae5
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: d44ea720fa9dfe062ef06d0eb49a58d4e7e92344
5
5
refs/heads/try: 6601b0501e31d08d3892a2d5a7d8a57ab120bf75
Original file line number Diff line number Diff line change @@ -259,7 +259,11 @@ extern "rust-intrinsic" {
259
259
/// Inform the optimizer that a condition is always true.
260
260
/// If the condition is false, the behavior is undefined.
261
261
///
262
- /// No code is generated for this intrisic.
262
+ /// 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.
263
267
#[ cfg( not( stage0) ) ]
264
268
pub fn assume ( b : bool ) ;
265
269
You can’t perform that action at this time.
0 commit comments