Provide an actual error when expanding macros to foreign items
auto merge of #6982 : Aatch/rust/better-foreign-error, r=pcwalton

I encountered this. A straight fail is not useful and most people aren't going to happily spelunk in `parser.rs`