@@ -603,8 +603,8 @@ pub const fn must_use<T>(value: T) -> T {
603603///
604604/// It can be used with `if` or boolean `match` expressions.
605605///
606- /// When used outside of a branch condition, it may still work if there is a branch close by , but
607- /// it is not guaranteed to have any effect.
606+ /// When used outside of a branch condition, it may still influence a nearby branch , but
607+ /// probably will not have any effect.
608608///
609609/// It can also be applied to parts of expressions, such as `likely(a) && unlikely(b)`, or to
610610/// compound expressions, such as `likely(a && b)`. When applied to compound expressions, it has
@@ -635,8 +635,7 @@ pub const fn must_use<T>(value: T) -> T {
635635/// false => println!("this branch is unlikely to be taken"),
636636/// }
637637///
638- /// // Use outside of a branch condition. This may still work if there is a branch close by,
639- /// // but it is not guaranteed to have any effect
638+ /// // Use outside of a branch condition may still influence a nearby branch
640639/// let cond = likely(x != 0);
641640/// if cond {
642641/// println!("this branch is likely to be taken");
@@ -646,7 +645,6 @@ pub const fn must_use<T>(value: T) -> T {
646645///
647646///
648647#[ unstable( feature = "likely_unlikely" , issue = "26179" ) ]
649- #[ rustc_nounwind]
650648#[ inline( always) ]
651649pub const fn likely ( b : bool ) -> bool {
652650 crate :: intrinsics:: likely ( b)
@@ -657,8 +655,8 @@ pub const fn likely(b: bool) -> bool {
657655///
658656/// It can be used with `if` or boolean `match` expressions.
659657///
660- /// When used outside of a branch condition, it may still work if there is a branch close by , but
661- /// it is not guaranteed to have any effect.
658+ /// When used outside of a branch condition, it may still influence a nearby branch , but
659+ /// probably will not have any effect.
662660///
663661/// It can also be applied to parts of expressions, such as `likely(a) && unlikely(b)`, or to
664662/// compound expressions, such as `unlikely(a && b)`. When applied to compound expressions, it has
@@ -689,16 +687,14 @@ pub const fn likely(b: bool) -> bool {
689687/// false => println!("this branch is likely to be taken"),
690688/// }
691689///
692- /// // Use outside of a branch condition. This may still work if there is a branch close by,
693- /// // but it is not guaranteed to have any effect
690+ /// // Use outside of a branch condition may still influence a nearby branch
694691/// let cond = unlikely(x != 0);
695692/// if cond {
696693/// println!("this branch is likely to be taken");
697694/// }
698695/// }
699696/// ```
700697#[ unstable( feature = "likely_unlikely" , issue = "26179" ) ]
701- #[ rustc_nounwind]
702698#[ inline( always) ]
703699pub const fn unlikely ( b : bool ) -> bool {
704700 crate :: intrinsics:: unlikely ( b)
@@ -732,7 +728,6 @@ pub const fn unlikely(b: bool) -> bool {
732728/// }
733729/// ```
734730#[ unstable( feature = "cold_path" , issue = "26179" ) ]
735- #[ rustc_nounwind]
736731#[ inline( always) ]
737732pub const fn cold_path ( ) {
738733 crate :: intrinsics:: cold_path ( )
0 commit comments