Skip to content

Remove TyDesc.#23376

Merged
bors merged 2 commits into
rust-lang:masterfrom
eddyb:die-tydesc-die
Mar 17, 2015
Merged

Remove TyDesc.#23376
bors merged 2 commits into
rust-lang:masterfrom
eddyb:die-tydesc-die

Conversation

@eddyb

@eddyb eddyb commented Mar 15, 2015

Copy link
Copy Markdown
Contributor

Final remnant of reflection is gone. Also, virtual Trait destructors are no longer tied to Box.
That means they can be used to drop any instance of the type (used in libarena to replace TyDesc).

This is [breaking-change] for direct users of intrinsics:

  • use intrinsics::type_name::<T>() instead of (*intrinsics::get_tydesc::<T>()).name
  • the only way to get the destructor is from a trait object's vtable (see libarena changes)

r? @pcwalton f? @dotdash

@nikomatsakis

Copy link
Copy Markdown
Contributor

@bors r+ 0f5e56e

@bors

bors commented Mar 17, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 0f5e56e with merge 32552fb...

@bors

bors commented Mar 17, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-mac-64-nopt-t

@eddyb

eddyb commented Mar 17, 2015

Copy link
Copy Markdown
Contributor Author

I remember specifically running those tests and fixing them, I'll have to investigate.
EDIT: they do pass at stage1 on x64 linux - if they don't pass at stage2 for me, that would be worrying.
EDIT2: and it passes - is it a mac-specific problem? Summoning @dotdash.
EDIT3: nothing to see here, old version went to testing by mistake.

Comment thread src/librustc_trans/trans/glue.rs Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not my local version (the second part of the condition is gone). I must have forgotten to push it shrug.

@bors

bors commented Mar 17, 2015

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #23423) made this pull request unmergeable. Please resolve the merge conflicts.

@eddyb

eddyb commented Mar 17, 2015

Copy link
Copy Markdown
Contributor Author

@bors r=nikomatsakis

@bors

bors commented Mar 17, 2015

Copy link
Copy Markdown
Collaborator

📌 Commit e256b7f has been approved by nikomatsakis

bors added a commit that referenced this pull request Mar 17, 2015
Final remnant of reflection is gone. Also, virtual `Trait` destructors are no longer tied to `Box`.
That means they can be used to drop any instance of the type (used in libarena to replace TyDesc).

This is [breaking-change] for direct users of intrinsics:
* use `intrinsics::type_name::<T>()` instead of `(*intrinsics::get_tydesc::<T>()).name`
* the only way to get the destructor is from a trait object's vtable (see libarena changes)

r? @pcwalton f? @dotdash
@bors

bors commented Mar 17, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit e256b7f with merge ea8b82e...

@bors

bors commented Mar 17, 2015

Copy link
Copy Markdown
Collaborator

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants