rust-lang / rust-lang/rfcs

A trait which is implemented only by raw trait objects

Open
#1,115 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

T-lang T-libs
Dominant language
Markdown
Stars
6.6k
Forks
1.7k
Avg merge
16h 14m
Merged PRs (30d)
1

Description

This would allow T: ?Sized + Trait (name bikesheddable) to guarantee that T is an unsized trait object, and can be transmuted to a raw::TraitObject. Trait would be quite useful for working with downcasting and safely adding downcasting to an existing trait that isn't Any.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the issue proposal and the linked Rust RFC process guidance; no implementation files, tests, or entry points are identified. Determine the intended semantics and safety guarantees for a trait implemented only by raw trait objects, including its relationship to downcasting and raw::TraitObject. Done would require an agreed design and an accepted RFC or equivalent project decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.