-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Open
Labels
A-backtraceArea: BacktracesArea: BacktracesA-dyn-traitArea: trait objects, vtable layoutArea: trait objects, vtable layoutA-name-manglingArea: name mangling / decorationArea: name mangling / decorationC-bugCategory: This is a bug.Category: This is a bug.F-min_generic_const_args`#![feature(min_generic_const_args)]``#![feature(min_generic_const_args)]`T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Reproducer
#![feature(min_generic_const_args)]
trait Trait { #[type_const] const N: usize; }
fn f<T: ?Sized>() { panic!(); }
fn main() { f::<dyn Trait<N = 1>>(); }Program Output
thread 'main' (13) panicked at src/main.rs:5:21:
explicit panic
stack backtrace:
0: __rustc::rust_begin_unwind
at /rustc/39052daf937d46373ac29778e1b8853c52c0cc25/library/std/src/panicking.rs:689:5
1: core::panicking::panic_fmt
at /rustc/39052daf937d46373ac29778e1b8853c52c0cc25/library/core/src/panicking.rs:80:14
2: core::panicking::panic
at /rustc/39052daf937d46373ac29778e1b8853c52c0cc25/library/core/src/panicking.rs:150:5
3: _RINvCshWKxMDStewK_10playground1fDNtB2_5Traitp1NKj1_EL_EB2_
at ./src/main.rs:5:21
4: playground::main
at ./src/main.rs:7:13
5: <fn() as core::ops::function::FnOnce<()>>::call_once
at ./.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Background
In PR #150843 I intentionally only bumped rustc-demangle for compiler, not for any other project (library, tools).
Steps
- Merge Bump rustc-demangle backtrace-rs#746
- Optionally(?) release a new version of
backtrace - Update submodule
backtrace,library/std/Cargo.tomland lock file
Metadata
Metadata
Assignees
Labels
A-backtraceArea: BacktracesArea: BacktracesA-dyn-traitArea: trait objects, vtable layoutArea: trait objects, vtable layoutA-name-manglingArea: name mangling / decorationArea: name mangling / decorationC-bugCategory: This is a bug.Category: This is a bug.F-min_generic_const_args`#![feature(min_generic_const_args)]``#![feature(min_generic_const_args)]`T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Type
Projects
Status
In Progress