Angaben zum Datum
Datum aus der Quelle.
Erstmals gesehen am .
Rust 1.99.0
Rust 1.99.0 stabilisiert C-variadic-Funktionsdefinitionen (auch mit #[unsafe(naked)]) sowie #[my_macro] mod foo; und ergänzt den Lint raw_borrows_via_references, erweitert unconditional_panic und korrigiert overflowing_literals bei wiederholter Negation.
<a id="1.99.0-Language"></a>
Language
- Add allow-by-default
raw_borrows_via_referenceslint that checks for references that decay immediately into raw borrows - Extend
unconditional_paniclint to function calls that panic when the chunks/windows size is zero - Stabilize C-variadic function definitions
- Stabilize the ability to use
#[unsafe(naked)]functions to define C-variadic functions (#![feature(c_variadic_naked_functions)]). - Trait methods are now resolved on an adjusted never type (producing a FCW)
- Coerce from inference variables to trait objects if the inference variable is related via subtyping to a type that is known to be
Sized - Stabilize
#[my_macro] mod foo;. This allows outlined modules (mod foo;) anywhere in the body of a custom attribute or derive macro. - Fix the
overflowing_literalslint with repeated negation. For instance, it will now no longer lint on--128_i8, which is already detected by thearithmetic_overflowlint. …