Skip to content

Commit

Permalink
Unrolled build for rust-lang#119595
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#119595 - mbbill:patch-1, r=Mark-Simulacrum

Fixed ambiguity in hint.rs

Needle and haystack are actually not the same, they remain constant.
  • Loading branch information
rust-timer authored Jan 6, 2024
2 parents 9212108 + fdf9383 commit fad45fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/hint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ pub fn spin_loop() {
///
/// The compiler could theoretically make optimizations like the following:
///
/// - `needle` and `haystack` are always the same, move the call to `contains` outside the loop and
/// - The `needle` and `haystack` do not change, move the call to `contains` outside the loop and
/// delete the loop
/// - Inline `contains`
/// - `needle` and `haystack` have values known at compile time, `contains` is always true. Remove
Expand Down

0 comments on commit fad45fa

Please sign in to comment.