David Tolnay

Results 361 issues of David Tolnay

As of https://github.com/rust-lang/cargo/pull/14595 and https://github.com/rust-lang/rust/pull/130929 (nightly-2024-09-29), Cargo is generating `version = 4` in Cargo.lock by default. ```console $ cargo new repro $ cd repro/ $ cargo build $ cargo outdated...

For example, consider this documentation on `i32::unchecked_add`: https://doc.rust-lang.org/1.82.0/std/primitive.i32.html#method.unchecked_add https://github.com/rust-lang/rust/blob/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/num/int_macros.rs#L493-L494 Rustdoc currently produces the following HTML. (I have inserted newlines for readability. These are not present in rustdoc's output.) ```html x....

T-rustdoc
C-enhancement
A-intra-doc-links
A-markdown-parsing

I noticed CI failures in #2951 because libtinfo5 is no longer available in ubuntu-latest since https://github.com/actions/runner-images/issues/10636. ```console Run sudo apt-get update sudo apt-get update sudo apt-get install libtinfo5 shell: /usr/bin/bash...

The following is minimized from Xcode's C++ standard library implementation. ```cpp // namespace.h #pragma once #define BEGIN_NAMESPACE namespace repro { inline namespace __1 { #define END_NAMESPACE } } ``` ```cpp...

## Currently unstable - [ ] **Never type https://github.com/rust-lang/rust/issues/35121** - Serialize and Deserialize impls for `!` ## Stabilized - [x] **Serialize and Deserialize for NonZero\* https://github.com/rust-lang/rust/issues/49137** - Stabilized in 1.0.60...

logistics

### Description I think the suggested code changes from `needless_lifetimes` are consistently good improvements when they look like this, involving only deleting characters: ```console warning: the following explicit lifetimes could...

`impl const Trait`, `impl async Trait`

breaking change

Tracking issue: https://github.com/rust-lang/rust/issues/123743 RFC: https://github.com/rust-lang/rfcs/pull/3484 ```rust unsafe extern "C" { pub safe static TEST1: i32; pub safe fn test1(i: i32); } ``` https://github.com/rust-lang/rust/blob/76e7a0849c07d73e4d9afde8036ee8c450127cc8/tests/ui/rust-2024/unsafe-extern-blocks/safe-items.rs

breaking change