Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove TyDesc. #23376

Merged
merged 2 commits into from
Mar 17, 2015
Merged

Remove TyDesc. #23376

merged 2 commits into from
Mar 17, 2015

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Mar 15, 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

@nikomatsakis
Copy link
Contributor

@bors r+ 0f5e56e

@bors
Copy link
Contributor

bors commented Mar 17, 2015

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

@bors
Copy link
Contributor

bors commented Mar 17, 2015

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

@eddyb
Copy link
Member Author

eddyb commented Mar 17, 2015

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.

_ => {
assert!(type_is_sized(bcx.tcx(), t));
if bcx.fcx.type_needs_drop(t) && ty::type_is_structural(t) {
Copy link
Member 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
Copy link
Contributor

bors commented Mar 17, 2015

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

@eddyb
Copy link
Member Author

eddyb commented Mar 17, 2015

@bors r=nikomatsakis

@bors
Copy link
Contributor

bors commented Mar 17, 2015

📌 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
Copy link
Contributor

bors commented Mar 17, 2015

⌛ Testing commit e256b7f with merge ea8b82e...

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