Skip to content

Symbol of items instantiated w/ dyn trait w/ assoc const bindings not demangled (aka backtrace's rustc-demangle needs to be bumped) #151548

Description

@fmease

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-backtraceArea: BacktracesA-dyn-traitArea: trait objects, vtable layoutA-name-manglingArea: Name mangling / decoration aka symbol manglingC-bugCategory: This is a bug.F-gca_min_const_items`#![feature(gca_min_const_items)]` (previously: `min_generic_const_args`)T-libsRelevant to the library team, which will review and decide on the PR/issue.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions