-
I tried this code:
```rust
trait Trait: Clone {
type Type: Clone;
}
#[derive(Clone)]
struct Struct(Option);
// impl Clone for Struct {
// fn clone(&self) -> Self {
// …
-
This is unfortunately requires an unstable feature: see https://github.com/rust-lang/rust/issues/54140
In other crates:
- `proc-macro-error` emits such diagnostics on `nightly` but silently igno…
-
The `dbg!` macro was just stabilized and will be in Rust 1.32 (see https://github.com/rust-lang/rust/issues/54306). Since one important reason for introducing the macro in the first place was to help …
-
Foreword, Rust macro newbie ahead :)
Is it possible to translate the macro into a `if-else` statement instead of a `match`?
My concern is to enable use cases with `let`, like below:
```rust
…
-
oxc-project/oxc#4614 made all AST types `#[repr(C)]`. To complete the work of making everything about the AST's in-memory representation predictable and guaranteed, we need to add explicit discriminan…
-
**Description**
I'd love to just press a key combination and call a specific report filter instead of typing the whole thing down.
**Solution**
Maybe adding a system of mapping keys to ":TEXT…
-
CI: https://buildkite.com/bazel/bazel-at-head-plus-disabled/builds/2081#019043b1-532a-4412-8724-970820f22fa2
Platform: Ubuntu
Logs:
```
FAIL: //:rust_project_json_test (Exit 101) (see /var/lib/b…
-
When working with ffi, sometimes I need to alias the rust function to the foreign one.
```rust
#[doc(alias = "ffi_fun")]
fn myfun() {
// ...
ffi_fun()
}
```
Since I need to wrap many for…
-
````
```{extendrsrc macro}
macro_rules! make_heck_fn {
($fn_name:ident) => {
#[extendr]
/// @export
fn $fn_name(x: Strings) -> Strings {
x.into_iter()
…
-
**Description**
Per doc, https://loco.rs/docs/getting-started/guide/ , running the following code:
`cargo loco generate controller guide -k api`
should generate the controller body seen below:
…