forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#128195 - matthiaskrgr:rollup-195dfdf, r=matth…
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#126908 (Use Cow<'static, str> for InlineAsmTemplatePiece::String) - rust-lang#127999 (Inject arm32 shims into Windows metadata generation) - rust-lang#128137 (CStr: derive PartialEq, Eq; add test for Ord) - rust-lang#128185 (Fix a span error when parsing a wrong param of function.) - rust-lang#128187 (Fix 1.80.0 version in RELEASES.md) - rust-lang#128189 (Turn an unreachable code path into an ICE) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
17 changed files
with
142 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Version 1.80 (2024-07-25) | ||
Version 1.80.0 (2024-07-25) | ||
========================== | ||
|
||
<a id="1.80-Language"></a> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mod cstr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use core::ffi::CStr; | ||
|
||
#[test] | ||
fn compares_as_u8s() { | ||
let a: &CStr = c"Hello!"; // Starts with ascii | ||
let a_bytes: &[u8] = a.to_bytes(); | ||
assert!((..0b1000_0000).contains(&a_bytes[0])); | ||
|
||
let b: &CStr = c"こんにちは!"; // Starts with non ascii | ||
let b_bytes: &[u8] = b.to_bytes(); | ||
assert!((0b1000_0000..).contains(&b_bytes[0])); | ||
|
||
assert_eq!(Ord::cmp(a, b), Ord::cmp(a_bytes, b_bytes)); | ||
assert_eq!(PartialOrd::partial_cmp(a, b), PartialOrd::partial_cmp(a_bytes, b_bytes)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,6 +132,7 @@ mod clone; | |
mod cmp; | ||
mod const_ptr; | ||
mod convert; | ||
mod ffi; | ||
mod fmt; | ||
mod future; | ||
mod hash; | ||
|
Oops, something went wrong.