about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-12-07 13:43:22 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2013-12-07 13:43:22 +1100
commit0c0e73eed6ee914c0be3fbc2ed200482a51c3fa9 (patch)
treea78ac17f591573cf8f5dcc5c6c24efc88b9e9560 /src/rustllvm/RustWrapper.cpp
parent3ef933647ab6adf841d8323a712101f37851eff9 (diff)
downloadrust-0c0e73eed6ee914c0be3fbc2ed200482a51c3fa9.tar.gz
rust-0c0e73eed6ee914c0be3fbc2ed200482a51c3fa9.zip
syntax::deriving: indicate from which trait type errors (etc) arise
using the expansion info.

Previously something like

    struct NotEq;

    #[deriving(Eq)]
    struct Error {
        foo: NotEq
    }

would just point to the `foo` field, with no mention of the
`deriving(Eq)`. With this patch, the compiler creates a note saying "in
expansion of #[deriving(Eq)]" pointing to the Eq.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions