`type_name` of an async fn future fails the build
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- build-system
Hướng nghiên cứu
Start by reproducing the failure with the minimal src/main.rs example using cargo rustd build. Trace how the Cranelift backend handles std::any::type_name for an async function future, then compare with the related async block layout issue #13. Done when the workspace loads successfully for this example and the reported tokio/axum dependency case is addressed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
std::any::type_name (or type_name_of_val) on the future of an async fn fails the build. Plain cargo run prints tn::work::{{closure}}.
cargo new tn, then replace src/main.rs with:
async fn work() -> u32 { 1 }
fn main() {
let fut = work();
println!("{}", std::any::type_name_of_val(&fut));
}
$ cargo rustd build
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s
error: the daemon could not load the workspace (exit status: 1: Error: `tn[bee6a96e4e266f05]::main` is not compiled by rustd: unsupported: callee `type_name`: unsupported: `type_name` of `Coroutine(InternedCoroutineId(InternedCoroutineId { key: ClosureKey { owner: DefWithBodyId(FunctionId(FunctionId(60ed9))), nth: 0, kind: Coroutine { kind: Async, source: Fn } } }), [(), (), (), u32, ()])`)
It first showed up in a tokio/axum workspace, where a dependency calls type_name on a future reached from block_on, so the whole program fails to load.
Not #13: that one is the layout of an async block.
- Linux aarch64 (Docker
rust:1.99.0): rustd0.0.0-42f6848-18e83ddffac1f84c - macOS 27.2.1 aarch64, Rust 1.99.0: rustd
0.0.0-3b0efc0-18e83c724da35926, same error - Both from the install script (the
nightlyrelease of 2026-10-21), Cranelift backend
Authored by Claude (claude-opus-5-5).
- Ngôn ngữ chính
- Rust
- Star
- 248
- Fork
- 13
- Merge trung bình
- 7 giờ 52 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DioxusLabs/rustd
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
DioxusLabs/rustd#15 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
DioxusLabs/rustd#27 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Workspace fails to load: rquickjs types give layout of …: HasErrorType, and rustd never falls backĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
DioxusLabs/rustd#26 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
DioxusLabs/rustd#25 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
DioxusLabs/rustd#24 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DioxusLabs/rustd
Issue tương tự
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
pbakaus/impeccable#1601 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
RDF/XML writer: a blank node in two lists is left out of the secondCó thể đã có người làm @mrnolte đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
phillord/horned-owl#368 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
mongodb/kingfisher#588 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bump Python to 3.14 or 3.15Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug rust
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày