diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-11-07 18:49:01 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-11-08 20:57:34 +1100 |
| commit | 812ea9e169d6edcc138e334e7e2b2cb5f7ba66b3 (patch) | |
| tree | bc573c50474ccf53fc5dfbb21c8217beee36d604 /src/rustllvm/RustWrapper.cpp | |
| parent | 57d1ed819b9e32a8e915ced9b5e130c299a46bca (diff) | |
| download | rust-812ea9e169d6edcc138e334e7e2b2cb5f7ba66b3.tar.gz rust-812ea9e169d6edcc138e334e7e2b2cb5f7ba66b3.zip | |
syntax::ext: Make type errors in deriving point to the field itself.
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
