

std::os::unix::net::SocketAddr::from_pathname.įor instance, in a container with 8 virtual CPUs but quotas only allowing for 50% usage, available_parallelism will return 4.std::process::ExitCode and std::process::Termination.These APIs are now usable in const contexts: The stabilization of these two APIs now makes it possible for programs to return errors from main with custom exit codes. No feature changes, but see compatibility notes. Previously native static libraries were linked as whole-archive in some cases, but now rustc tries not to use whole-archive unless explicitly requested.To fix such errors, native libraries linked from the command line, build scripts, or # attributes need to This change may result in linking errors in some cases. (more common) either be reordered to respect dependencies between them (if a depends on b then a should go first and b second).(less common) or be updated to use the +whole-archive modifier.
Rust any downcast code#
Catching a second unwind from FFI code while cleaning up from a Rust panic now causes the process to abort.Proc macros no longer see ident matchers wrapped in groups.The number of # in r# raw string literals is now required to be less than 256.When checking that a dyn type satisfies a trait bound, supertrait bounds are now enforced.cargo vendor now only accepts one value for each -sync flag.cfg predicates in all() and any() are always evaluated to detect errors, instead of short-circuiting.The compatibility considerations here arise in nightly-only code that used the short-circuiting behavior of all to write something like cfg(all(feature = "nightly", syntax-requiring-nightly)), which will now fail to compile. Instead, use either cfg_attr(feature = "nightly".

