kennytm

Results 392 comments of kennytm

I'd also like to note that by exploiting the implementation details of `Hash` it is already possible to extract the discriminant value in safe and stable Rust (without the repr...

@RalfJung Thanks. Perhaps #1105 should contain to pointer to https://doc.rust-lang.org/cargo/reference/semver.html.

No lexing section needed, `enum#discriminant` is a single "identifier" token following #3101.

@mattheww I'd suppose `Ident::new("enum#discriminant", span)` like all other keywords. Raw identifier is special because `r#something` is the same as `something` but losing keyword magic. Yet `enum#discriminant` acts just as a...

that special trait already exists https://doc.rust-lang.org/std/marker/trait.DiscriminantKind.html but I think it is perma-unstable for now

> If the image is a square, it should be an even number. Huh. 441 = 21 x 21. The `.to_colors()` method returns a vector of `Color`. The QR code...

IMO the only reason to add `erf` and `erfc` is matching the content of `math.h` in [C99](https://en.cppreference.com/w/c/numeric/math/erf) / C++11. The implementation should just defer to the build environment's `libm.a` or...

@pezcore Elementary functions like `log` and `sin`/`cos` can be lowered to [LLVM intrinsics](https://llvm.org/docs/LangRef.html#standard-c-c-library-intrinsics) so the `core` library can stay not explicitly relying on `libm` thus avoiding rust-lang/rust#26350. `gamma` is not...