Skip to content

Conversation

@mark-i-m
Copy link
Contributor

This should fix the builds.

  • chalk moved to rust-lang, so all of the links broke
  • @Zoxc changed the rustc_driver to use the new rustc_interface

r? @Zoxc

You can see an example of how to use them by looking at the `rustc_driver` implementation,
specifically the [`rustc_driver::run_compiler` function][rd_rc] (not to be confused with
`interface::run_compiler`). The `rustc_driver::run_compiler` function takes a bunch of
command-line args and some other configurations and drives the compilation to completion.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe mention that rustc_driver::run_compiler takes a Callbacks type, which essentially replaces CompilerCalls + CompileController?

> a copy of the code on the GitHub repository.
>
> Due to the compiler's constantly evolving nature, the `rustc_driver`
> mechanisms described in this chapter have been replaced by a new
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not exactly true as rustc_driver still exposes a similar interface with run_compiler + Callbacks.

@mark-i-m
Copy link
Contributor Author

Thanks @Zoxc! I believe I have addressed your comments.

@Zoxc Zoxc merged commit 07b4c15 into rust-lang:master Mar 20, 2019
@mark-i-m mark-i-m deleted the fix-links branch June 15, 2019 21:10
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.

2 participants