Subject: CVS commit: pkgsrc/lang/rust
From: pin
Date: 2024-04-18 11:29:43
Message id: 20240418092943.CAB27FA2C@cvs.NetBSD.org

Log Message:
lang/rust: update to 1.76.0

Language
 - Document Rust ABI compatibility between various types
 - Also: guarantee that char and u32 are ABI-compatible
 - Add lint ambiguous_wide_pointer_comparisons that supersedes \ 
clippy::vtable_address_comparisons

Compiler
 - Lint pinned #[must_use] pointers (in particular, Box<T> where T is \ 
#[must_use]) in unused_must_use.
 - Soundness fix: fix computing the offset of an unsized field in a packed struct
 - Soundness fix: fix dynamic size/align computation logic for packed types with \ 
dyn Trait tail
 - Add $message_type field to distinguish json diagnostic outputs
 - Enable Rust to use the EHCont security feature of Windows
 - Add tier 3 {x86_64,i686}-win7-windows-msvc targets
 - Add tier 3 aarch64-apple-watchos target
 - Add tier 3 arm64e-apple-ios & arm64e-apple-darwin targets

Refer to Rust's platform support page for more information on Rust's tiered \ 
platform support.

Libraries
 - Add a column number to dbg!()
 - Add std::hash::{DefaultHasher, RandomState} exports
 - Fix rounding issue with exponents in fmt
 - Add T: ?Sized to RwLockReadGuard and RwLockWriteGuard's Debug impls.
 - Windows: Allow File::create to work on hidden files

Stabilized APIs
 - Arc::unwrap_or_clone
 - Rc::unwrap_or_clone
 - Result::inspect
 - Result::inspect_err
 - Option::inspect
 - type_name_of_val
 - std::hash::{DefaultHasher, RandomState} These were previously available only \ 
through std::collections::hash_map.
 - ptr::{from_ref, from_mut}
 - ptr::addr_eq

Cargo

See Cargo release notes.

Rustdoc
 - Don't merge cfg and doc(cfg) attributes for re-exports
 - rustdoc: allow resizing the sidebar / hiding the top bar
 - rustdoc-search: add support for traits and associated types
 - rustdoc: Add highlighting for comments in items declaration

Compatibility Notes
 - Add allow-by-default lint for unit bindings This is expected to be upgraded \ 
to a warning by default in a future Rust release. Some macros emit bindings with \ 
type () with user-provided spans, which means that this lint will warn for user \ 
code.
 - Remove x86_64-sun-solaris target.
 - Remove asmjs-unknown-emscripten target
 - Report errors in jobserver inherited through environment variables This may \ 
warn on benign problems too.
 - Update the minimum external LLVM to 16.
 - Improve print_tts This change can break some naive manual parsing of token \ 
trees in proc macro code which expect a particular structure after .to_string(), \ 
rather than just arbitrary Rust code.
 - Make IMPLIED_BOUNDS_ENTAILMENT into a hard error from a lint
 - Vec's allocation behavior was changed when collecting some iterators \ 
Allocation behavior is currently not specified, nevertheless changes can be \ 
surprising. See impl FromIterator for Vec for more details.
 - Properly reject default on free const items

Files:
RevisionActionfile
1.305modifypkgsrc/lang/rust/Makefile
1.170modifypkgsrc/lang/rust/distinfo
1.9modifypkgsrc/lang/rust/do-cross.mk
1.38modifypkgsrc/lang/rust/options.mk
1.15modifypkgsrc/lang/rust/patches/patch-compiler_rustc__codegen__ssa_src_back_linker.rs
1.17modifypkgsrc/lang/rust/patches/patch-compiler_rustc__llvm_build.rs
1.2modifypkgsrc/lang/rust/patches/patch-compiler_rustc__target_src_spec_base_netbsd.rs
1.17modifypkgsrc/lang/rust/patches/patch-compiler_rustc__target_src_spec_mod.rs
1.2modifypkgsrc/lang/rust/patches/patch-compiler_rustc__target_src_spec_targets_mips64el__unknown__netbsd.rs
1.6modifypkgsrc/lang/rust/patches/patch-library_backtrace_src_symbolize_gimli.rs
1.8modifypkgsrc/lang/rust/patches/patch-library_backtrace_src_symbolize_gimli_elf.rs
1.10modifypkgsrc/lang/rust/patches/patch-library_std_src_sys_unix_mod.rs
1.16modifypkgsrc/lang/rust/patches/patch-library_std_src_sys_unix_thread.rs
1.4modifypkgsrc/lang/rust/patches/patch-library_std_src_sys_unix_thread__parking_netbsd.rs
1.23modifypkgsrc/lang/rust/patches/patch-src_bootstrap_bootstrap.py
1.2modifypkgsrc/lang/rust/patches/patch-src_bootstrap_src_core_build__steps_compile.rs
1.3modifypkgsrc/lang/rust/patches/patch-src_bootstrap_src_core_builder.rs
1.2modifypkgsrc/lang/rust/patches/patch-src_bootstrap_src_lib.rs
1.14modifypkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_CMakeLists.txt
1.15modifypkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_cmake_modules_AddLLVM.cmake
1.8modifypkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_include_llvm-c_DataTypes.h
1.10modifypkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_include_llvm_Analysis_ConstantFolding.h
1.4modifypkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_lib_Support_BLAKE3_blake3__impl.h
1.13modifypkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_utils_FileCheck_FileCheck.cpp
1.17modifypkgsrc/lang/rust/patches/patch-src_tools_cargo_src_cargo_core_profiles.rs
1.14modifypkgsrc/lang/rust/patches/patch-src_tools_cargo_tests_testsuite_build.rs
1.14modifypkgsrc/lang/rust/patches/patch-src_tools_rust-installer_install-template.sh
1.6modifypkgsrc/lang/rust/patches/patch-vendor_backtrace_src_symbolize_gimli.rs
1.8modifypkgsrc/lang/rust/patches/patch-vendor_backtrace_src_symbolize_gimli_elf.rs
1.4modifypkgsrc/lang/rust/patches/patch-vendor_cc-1.0.73_src_lib.rs
1.14modifypkgsrc/lang/rust/patches/patch-vendor_cc_src_lib.rs
1.6modifypkgsrc/lang/rust/patches/patch-vendor_crossbeam-epoch_no__atomic.rs
1.3modifypkgsrc/lang/rust/patches/patch-vendor_crossbeam-utils-0.8.14-no__atomic.rs
1.6modifypkgsrc/lang/rust/patches/patch-vendor_crossbeam-utils_no__atomic.rs
1.2modifypkgsrc/lang/rust/patches/patch-vendor_libc-0.2.148_src_unix_bsd_netbsdlike+netbsd_mips.rs
1.2modifypkgsrc/lang/rust/patches/patch-vendor_libc-0.2.148_src_unix_bsd_netbsdlike_netbsd_mod.rs
1.2modifypkgsrc/lang/rust/patches/patch-vendor_libc-0.2.148_src_unix_bsd_netbsdlike_netbsd_riscv64.rs
1.2modifypkgsrc/lang/rust/patches/patch-vendor_libc-0.2.148_src_unix_solarish_mod.rs
1.15modifypkgsrc/lang/rust/patches/patch-vendor_libc_src_unix_solarish_mod.rs
1.9modifypkgsrc/lang/rust/patches/patch-vendor_lzma-sys_config.h
1.4modifypkgsrc/lang/rust/patches/patch-vendor_openssl-src_openssl_Configurations_10-main.conf
1.13modifypkgsrc/lang/rust/patches/patch-vendor_openssl-src_src_lib.rs
1.4modifypkgsrc/lang/rust/patches/patch-vendor_openssl-sys_build_find__normal.rs
1.5modifypkgsrc/lang/rust/patches/patch-vendor_openssl-sys_build_main.rs
1.9modifypkgsrc/lang/rust/patches/patch-vendor_rustc-ap-rustc__target_src_spec_aarch64__be__unknown__netbsd.rs
1.10modifypkgsrc/lang/rust/patches/patch-vendor_stacker_src_lib.rs
1.14modifypkgsrc/lang/rust/patches/patch-vendor_target-lexicon_src_targets.rs
1.5modifypkgsrc/lang/rust/patches/patch-vendor_valuable_no__atomic.rs
1.1addpkgsrc/lang/rust/patches/patch-compiler_rustc__target_src_spec_targets_i586__unknown__netbsd.rs
1.1addpkgsrc/lang/rust/patches/patch-vendor_aho-corasick_src_packed_teddy_builder.rs
1.1addpkgsrc/lang/rust/patches/patch-vendor_aho-corasick_src_packed_vector.rs
1.1addpkgsrc/lang/rust/patches/patch-vendor_nix-0.26.2_src_sys_signal.rs
1.1removepkgsrc/lang/rust/patches/patch-src_bootstrap_src_core_build__steps_llvm.rs
1.1removepkgsrc/lang/rust/patches/patch-vendor_libc-0.2.141_src_unix_bsd_netbsdlike_netbsd_mips.rs
1.1removepkgsrc/lang/rust/patches/patch-vendor_libc-0.2.141_src_unix_bsd_netbsdlike_netbsd_riscv64.rs
1.1removepkgsrc/lang/rust/patches/patch-vendor_libc-0.2.146_src_unix_bsd_netbsdlike_netbsd_mips.rs
1.2removepkgsrc/lang/rust/patches/patch-vendor_libc-0.2.146_src_unix_bsd_netbsdlike_netbsd_mod.rs
1.1removepkgsrc/lang/rust/patches/patch-vendor_libc-0.2.146_src_unix_bsd_netbsdlike_netbsd_riscv64.rs
1.1removepkgsrc/lang/rust/patches/patch-vendor_libc-0.2.146_src_unix_solarish_mod.rs
1.1removepkgsrc/lang/rust/patches/patch-vendor_libc-0.2.149_src_unix_bsd_netbsdlike_netbsd_mips.rs
1.1removepkgsrc/lang/rust/patches/patch-vendor_libc-0.2.149_src_unix_bsd_netbsdlike_netbsd_mod.rs
1.1removepkgsrc/lang/rust/patches/patch-vendor_libc-0.2.149_src_unix_bsd_netbsdlike_netbsd_riscv64.rs
1.1removepkgsrc/lang/rust/patches/patch-vendor_libc-0.2.149_src_unix_solarish_mod.rs
1.4removepkgsrc/lang/rust/patches/patch-vendor_nix_src_sys_signal.rs