diff options
| author | bors <bors@rust-lang.org> | 2025-09-16 21:53:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-09-16 21:53:05 +0000 |
| commit | 3f1552a273e43e15f6ed240d00e1efdd6a53e65e (patch) | |
| tree | df8382ea88536a3acfce167d59b14969b83c12ce /library | |
| parent | a9d0a6f15533a364816c4d81e2192009ef601d33 (diff) | |
| parent | cf035527acbd46608872add6158e1fc23049872d (diff) | |
| download | rust-3f1552a273e43e15f6ed240d00e1efdd6a53e65e.tar.gz rust-3f1552a273e43e15f6ed240d00e1efdd6a53e65e.zip | |
Auto merge of #146650 - matthiaskrgr:rollup-rjrklz9, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - rust-lang/rust#146442 (Display ?Sized, const, and lifetime parameters in trait item suggestions across a crate boundary) - rust-lang/rust#146474 (Improve `core::ascii` coverage) - rust-lang/rust#146605 (Bump rustfix 0.8.1 -> 0.8.7) - rust-lang/rust#146611 (bootstrap: emit hint if a config key is used in the wrong section) - rust-lang/rust#146618 (Do not run ui test if options specific to LLVM are used when another codegen backend is used) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'library')
| -rw-r--r-- | library/coretests/tests/ascii.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/library/coretests/tests/ascii.rs b/library/coretests/tests/ascii.rs index ce09ee507f1..297aa114e00 100644 --- a/library/coretests/tests/ascii.rs +++ b/library/coretests/tests/ascii.rs @@ -505,3 +505,10 @@ fn test_escape_ascii_iter() { let _ = it.advance_back_by(4); assert_eq!(it.to_string(), r#"fastpath\xffremainder"#); } + +#[test] +fn test_invalid_u8() { + for c in 128..=255 { + assert_eq!(core::ascii::Char::from_u8(c), None); + } +} |
