]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #26452 - michaelsproul:the-second-coming, r=pnkfelix
authorManish Goregaokar <manishsmail@gmail.com>
Sat, 20 Jun 2015 16:10:37 +0000 (21:40 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Sat, 20 Jun 2015 16:10:37 +0000 (21:40 +0530)
commit7effb31fa201213929eb2cefc3c2b52013e307ac
tree2553c0db12d4d71d9c9de0757f1eaefb9ebc2ddd
parent6bff14ffea5a3ca3f3b439b011954b521eb21a09
parent634fced396f180eea18a828bdddec3deded61ab8
Rollup merge of #26452 - michaelsproul:the-second-coming, r=pnkfelix

As per #26009 this PR implements a new collation system for extended-error metadata. I've tried to keep it as simple as possible for now, so there's no uniqueness checking and minimal modularity.

Although using a lint was discussed in #26009 I decided against this because it would require converting the AST output from the plugin back into an internal data-structure. Emitting the metadata from within the plugin prevents this double-handling. We also didn't identify this as the source of the failures last time, although something untoward was definitely happening... With that in mind I would like as much feedback as possible on this before it's merged, I don't want to break the bots again!

I've successfully built for my host architecture and I'm building an ARM cross-compiler now to test my assumptions about the various `CFG` variables. Despite the confusing name of `CFG_COMPILER_HOST_TRIPLE` it is actually the compile time target triple, as explained in `mk/target.mk`.

```
# This is the compile-time target-triple for the compiler. For the compiler at
# runtime, this should be considered the host-triple. More explanation for why
# this exists can be found on issue #2400
export CFG_COMPILER_HOST_TRIPLE
```

CC @pnkfelix @brson @nrc @alexcrichton

Closes #25705, closes #26009.
src/librustc_typeck/diagnostics.rs