Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upis_instantiable check is broken by nested types #27497
Comments
arielb1
added
the
A-amusing
label
Aug 3, 2015
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
I'm trying to remember what motivated us to add that check in the first place, but I cannot. |
This comment has been minimized.
This comment has been minimized.
|
The old type-checker was far less robust then. Can it be removed? |
This comment has been minimized.
This comment has been minimized.
|
@arielb1 seems ok to me, but cc @rust-lang/lang |
nikomatsakis
added
I-nominated
I-needs-decision
T-lang
labels
Aug 15, 2015
This comment has been minimized.
This comment has been minimized.
|
(I'm okay with removing the check, without going through the RFC process.) |
This comment has been minimized.
This comment has been minimized.
|
@arielb1 after discussing in lang subteam meeting, general conclusion was "seems fine to experiment with removing the |
arielb1 commentedAug 3, 2015
STR
Results
Foois uninhabitable, but the uninhabitability error doesn't trigger. Removing one of theBar-s does make it trigger. This is rather suprising.The check was added in the olden days when typeck was much less robust, and can be bypassed very easily by associated types anyway - we may want to remove it.
cc @nikomatsakis