mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 11:13:43 +00:00
a0fcc8ebc0
Add `display` method to `OsStr` for lossy display of an `OsStr` which may contain invalid unicode. Invalid Unicode sequences are replaced with `U+FFFD REPLACEMENT CHARACTER`. This change also makes the `std::ffi::os_str` module public.
10 lines
241 B
JavaScript
10 lines
241 B
JavaScript
// exact-match
|
|
|
|
// https://github.com/rust-lang/rust/issues/60485#issuecomment-663900624
|
|
const EXPECTED = {
|
|
'query': 'OsString -> String',
|
|
'others': [
|
|
{ 'path': 'std::ffi::os_str::OsString', 'name': 'into_string' },
|
|
]
|
|
};
|