8389253df0
This commit: * Introduces `std::convert`, providing an implementation of RFC 529. * Deprecates the `AsPath`, `AsOsStr`, and `IntoBytes` traits, all in favor of the corresponding generic conversion traits. Consequently, various IO APIs now take `AsRef<Path>` rather than `AsPath`, and so on. Since the types provided by `std` implement both traits, this should cause relatively little breakage. * Deprecates many `from_foo` constructors in favor of `from`. * Changes `PathBuf::new` to take no argument (creating an empty buffer, as per convention). The previous behavior is now available as `PathBuf::from`. * De-stabilizes `IntoCow`. It's not clear whether we need this separate trait. Closes #22751 Closes #14433 [breaking-change] |
||
---|---|---|
.. | ||
cfg | ||
infer | ||
traits | ||
astconv_util.rs | ||
astencode.rs | ||
check_const.rs | ||
check_loop.rs | ||
check_match.rs | ||
check_rvalues.rs | ||
check_static_recursion.rs | ||
const_eval.rs | ||
dataflow.rs | ||
dead.rs | ||
def.rs | ||
dependency_format.rs | ||
effect.rs | ||
entry.rs | ||
expr_use_visitor.rs | ||
fast_reject.rs | ||
graph.rs | ||
intrinsicck.rs | ||
lang_items.rs | ||
liveness.rs | ||
mem_categorization.rs | ||
pat_util.rs | ||
privacy.rs | ||
reachable.rs | ||
recursion_limit.rs | ||
region.rs | ||
resolve_lifetime.rs | ||
stability.rs | ||
subst.rs | ||
ty_fold.rs | ||
ty_walk.rs | ||
ty.rs | ||
weak_lang_items.rs |