Waffle Maybe

Results 54 issues of Waffle Maybe

I'm trying to implement trait with `async fn` for all `async fn`s. Simplified example: ```rust #[async_trait] trait Trait { async fn run(&self); } #[async_trait] impl Trait for F where F:...

rustc bug

This code: ```rust assert_eq!( inflector::cases::classcase::to_class_case("editMessageMedia"), "EditMessageMedia" ); ``` Fails with this error: ``` thread 'main' panicked at 'assertion failed: `(left == right)` left: `"EditMessageMedum"`, right: `"EditMessageMedia"`', src/main.rs:228:5 ```

Use pointer methods (`byte_add`, `null_mut`, etc) to make code in std a little nicer.

S-waiting-on-review
T-libs

This PR replaces `addr % align` with `addr & align - 1`, which is correct due to `align` being a power of two. Here is a proof that this makes...

S-waiting-on-bors
T-libs

This PR adds the following public API: ```rust impl *const T { fn mask(self, mask: usize) -> *const T; } impl *mut T { fn mask(self, mask: usize) -> *const...

T-libs-api
T-compiler
S-waiting-on-author

This PR implements a new stability attribute — `#[rustc_default_body_unstable]`. `#[rustc_default_body_unstable]` controls the stability of default bodies in traits. For example: ```rust pub trait Trait { #[rustc_default_body_unstable(feature = "feat", isssue =...

T-compiler
S-waiting-on-review

This clarifies where exactly `impl Trait` can be used. This also includes changes from https://github.com/rust-lang/rust/pull/93082.

# Bug Report Consider the following structure: ```text ├── content │ └── pages │ ├── about │ │ ├── picture.jpg │ │ └── index.md │ └── _index.md ``` `_index.md`: ```md...

`cargo fmt -- --config wrap_comments=true` turns this: ```rust /// doc /// /// Table that is > 80 symbols: /// /// | table | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | /// |-------|--------------------------------------------------------------------| /// | val...

bug
only-with-option
1x-backport:pending

Is it possible to make a default subcommand with `argh`? I want something like this: ```rust #[derive(FromArgs, PartialEq, Debug)] /// Top-level command. struct TopLevel { #[argh(subcommand)] nested: Sub, } #[derive(FromArgs,...