-
This is a tracking issue for using `TypeId::of` in constant contexts.
The feature gate for the issue is `#![feature(const_type_id)]`.
### About tracking issues
Tracking issues are used to recor…
-
-
### Code
```rust
trait Trait {}
async fn fun() -> Trait {
todo!()
}
fn main() {}
```
### Current output
```
error[E0782]: expected a type, found a trait
--> src/main.rs:3:19
|
3 | async fn…
-
### Zig Version
0.14.0-dev.1713+f99097e68
### Steps to Reproduce and Observed Behavior
Compile the following code with `zig build-obj file.zig`.
```zig
const False = union(enum) {
falso: nor…
-
### 🐛 Describe the bug
repro:
```
class M(torch.nn.Module):
def forward(self, x, flag):
# without the following line, it can run fine
flag = flag.item()
def true_f…
-
### 🐛 Describe the bug
```python
import torch
from torch.nn.attention.flex_attention import create_block_mask, flex_attention
torch.set_default_device("cuda")
@torch.compile(dynamic=True)
de…
-
As far as I can tell, some nom parsers (like `re_find!`) aren't generic enough, and must accept `&str` input. This means you can't pass them a `LocatedSpan`.
It would be nice if there were a functi…
-
The `fn *_rust` vs. `fn *_c_erased` distinction is something we added in Rust that's not there in C, so we want that addition to be zero-cost. It is if the `fn *_rust` is inlined into the `fn *_c_era…
-
Minimal repro:
```javascript
>{ let scope = "first"; function fn() { console.log("in fn, scope = " + scope); } }
=undefined
>scope
Uncaught ReferenceError: "scope" is not defined // as expecte…
-
Hello! thanks for sharing the great work!
I have some questions about the dataset.py code.
I rewrite the imagenet.py in dataset/classification to make my own dataset.
I changed only the name of…