rust/library/std/src/ffi
Tyler Ruckinger 4d1efb751a
OsStr eq_ignore_ascii_case takes arg by value
Per a comment on #70516 this changes `eq_ignore_ascii_case` to take the generic parameter `S: AsRef<OsStr>` by value instead of by reference.

This is technically a breaking change to an unstable method. I think the only way it would break is if you called this method with an explicit type parameter, ie `my_os_str.eq_ignore_ascii_case::<str>("foo")` becomes `my_os_str.eq_ignore_ascii_case::<&str>("foo")`.

Besides that, I believe it is overall more flexible since it can now take an owned `OsString` for example.

If this change should be made in some other PR (like #80193) then please just close this.
2021-02-03 10:28:51 -05:00
..
c_str std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
os_str std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
c_str.rs Update tests for extern block linting 2021-01-13 07:49:16 -05:00
mod.rs Move to intra doc links in std::ffi 2020-08-13 23:19:45 +02:00
os_str.rs OsStr eq_ignore_ascii_case takes arg by value 2021-02-03 10:28:51 -05:00