diff options
| author | bors <bors@rust-lang.org> | 2013-11-08 08:36:08 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-11-08 08:36:08 -0800 |
| commit | a594a999fbccf04710c9dfea3ef3d231c14e1bd1 (patch) | |
| tree | 7d908a83dba710322af3cde01f791a87e23234bf /src/rustllvm/RustWrapper.cpp | |
| parent | 9d8dc004a021af5807120ae9ef2854ab99350cbf (diff) | |
| parent | 812ea9e169d6edcc138e334e7e2b2cb5f7ba66b3 (diff) | |
| download | rust-a594a999fbccf04710c9dfea3ef3d231c14e1bd1.tar.gz rust-a594a999fbccf04710c9dfea3ef3d231c14e1bd1.zip | |
auto merge of #10355 : huonw/rust/deriving-field-spans, r=alexcrichton
This rearranges the deriving code so that #[deriving] a trait on a field
that doesn't implement that trait will point to the field in question,
e.g.
struct NotEq; // doesn't implement Eq
#[deriving(Eq)]
struct Foo {
ok: int,
also_ok: ~str,
bad: NotEq // error points here.
}
Unfortunately, this means the error is disconnected from the `deriving`
itself but there's no current way to pass that information through to
rustc except via the spans, at the moment.
Fixes #7724.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
