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 upPanic when using Self: Send constraint in impl parameter #36638
Comments
Aatch
added
the
I-ICE
label
Sep 22, 2016
This comment has been minimized.
This comment has been minimized.
|
Reduced: trait SpawnableTaskTrait<Self: Send> {}The real error is the first one reported (tested on the latest nightly):
This is a regression from stable to nightly. |
TimNN
added
regression-from-stable-to-nightly
T-compiler
labels
Sep 22, 2016
brson
assigned
eddyb
Sep 22, 2016
This comment has been minimized.
This comment has been minimized.
|
Added the actual message to the backtrace in the description. Yeah, what I didn't expect is parser recovery to work, this is minor and easy to fix. |
eddyb
referenced this issue
Sep 22, 2016
Merged
Don't let a type parameter named "Self" unchanged past HIR lowering. #36649
bors
added a commit
that referenced
this issue
Sep 23, 2016
bors
closed this
in
#36649
Sep 23, 2016
TimNN
referenced this issue
Sep 24, 2016
Closed
Crash "../src/librustc_typeck/collect.rs:1925: `Self` should not be the name of a regular parameter" #36688
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xrl commentedSep 22, 2016
•
edited by eddyb
Panic when trying to enforce
Sendon a impl parameter of typeSelf. Panics with meaningful error. Should perhaps just be a regular compiler error?I tried this code:
I expected to see this happen: meaningful error or it would work!
Instead, this happened: panic in rustc
Meta
rustc --version --verbose:Backtrace: