scottmcm

Results 42 issues of scottmcm

I noticed that a bit of #8498 could use the relatively-new `hash_one` helper, so here's a PR. Up to you whether you want the change; it does exactly the same...

cranelift

Nearing the end of https://github.com/rust-lang/compiler-team/issues/621 ! Currently blocked on ~~https://github.com/rust-lang/compiler-builtins/pull/673~~ ~~https://github.com/rust-lang/compiler-builtins/pull/674~~ ~~https://github.com/rust-lang/rust/pull/129400~~ ~~https://github.com/rust-lang/rust/pull/129481~~ for windows.

T-compiler
S-waiting-on-review
A-run-make

### Type of issue Missing information ### Description The return value for `WaitForNextTickAsync` is a `ValueTask`, but the documentation doesn't say what `true` or `false` mean as the value of...

untriaged
Pri3
area-System.Threading.Tasks

We have `From` for infallible, `TryFrom` for checked, and this proposes `WrappingFrom` for modular conversions. [Rendered](https://github.com/scottmcm/rfcs/blob/wrapping-from/text/3703-wrapping-from.md)

T-libs-api

# Proposal ## Problem statement Stealing from **steffahn** in : > I think `Vec` *is* at least missing some sort of generic `shrink()`/`garbage_collect()`/... function with good asymptotics, so that if...

T-libs-api
api-change-proposal

# Proposal ## Problem statement It's really nice now that `uNN::checked_sub` gives you a *safe* way to get a `uNN::unchecked_sub`. However, that's only a smooth replacement for code doing `if...

T-libs-api
api-change-proposal

# Proposal ## Problem statement One common pattern of numeric conversions is having a signed value and needing it in the unsigned type, or vice versa. Things like `isize::MAX as...

T-libs-api
api-change-proposal

This is a tracking issue for the RFC "`try_trait_v2`: A new design for the `?` desugaring" (rust-lang/rfcs#3058). The feature gate for the issue is `#![feature(try_trait_v2)]`. This obviates https://github.com/rust-lang/rfcs/pull/1859, tracked in...

B-RFC-approved
T-lang
T-libs-api
C-tracking-issue
F-try_trait_v2
S-tracking-design-concerns

This proposes adding `#[inline(trampoline)]` and `#[inline(rarely)]` to hint the compiler additional information about *why* you're marking the function for inlining, to help it hopefully make better choices without the overly-strong...

T-lang

Tweak the behaviour of `?` inside `try{}` blocks to not depend on context, in order to work better with methods and need type annotations less often. The stable behaviour of...

T-lang
T-libs-api
I-lang-radar