acerest.blogg.se

Rust any downcast
Rust any downcast






rust any downcast

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".

rust any downcast

  • bootstrap: static-libstdcpp is now enabled by default, and can now be disabled when llvm-tools is enabled.
  • These changes provide no direct user facing benefits, but represent significant improvements to the internals and overall performance of rustc and related tools.
  • debuginfo: Refactor debuginfo generation for types.
  • Stabilize # for either "unwind" or "abort".
  • Stabilize # for each integer size and "ptr".
  • Enable combining +crt-static and relocation-model=pic on x86_64-unknown-linux-gnu.
  • Fixes wrong unreachable_pub lints on nested and glob public reexport.
  • Stabilize -Z instrument-coverage as -C instrument-coverage.
  • Stabilize -Z print-link-args as -print link-args.
  • Add new Tier 3 target mips64-openwrt-linux-musl*.
  • Add new Tier 3 target armv7-unknown-linux-uclibceabi (softfloat)*.
  • Fix invalid removal of newlines from doc comments.







  • Rust any downcast