Skip to content

Resurrect the Compiler Error Index. #26452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2015
Merged

Resurrect the Compiler Error Index. #26452

merged 1 commit into from
Jun 20, 2015

Conversation

michaelsproul
Copy link
Contributor

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.

@rust-highfive
Copy link
Contributor

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@pnkfelix
Copy link
Member

Hmm, suboptimal that there's no longer uniqueness checking, but I guess its better to have the suboptimal thing in place then to allow the error index to keep bit-rotting.

@pnkfelix
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 20, 2015

📌 Commit 634fced has been approved by pnkfelix

@michaelsproul
Copy link
Contributor Author

@pnkfelix: If this works then adding uniqueness checking is just a few lines of Python in the error checking script.

@michaelsproul
Copy link
Contributor Author

Or we could do it when constructing the error index page.

Manishearth added a commit to Manishearth/rust that referenced this pull request Jun 20, 2015
…pnkfelix

As per rust-lang#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 rust-lang#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 rust-lang#2400
export CFG_COMPILER_HOST_TRIPLE
```

CC @pnkfelix @brson @nrc @alexcrichton 

Closes rust-lang#25705, closes rust-lang#26009.
bors added a commit that referenced this pull request Jun 20, 2015
@bors bors merged commit 634fced into rust-lang:master Jun 20, 2015
@michaelsproul
Copy link
Contributor Author

I'm going to watch the build bots like a hawk...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New error metadata system required. Robust error explanation index and error code uniqueness checking
4 participants