Skip to content

compile-mode integration: add link to code references. #391

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 18, 2020
Merged

compile-mode integration: add link to code references. #391

merged 1 commit into from
Jun 18, 2020

Conversation

mookid
Copy link
Contributor

@mookid mookid commented Jun 18, 2020

This allows to jump to code references such as lines 82 and 132 in the
following snippet error message.

error[E0061]: this function takes 1 parameter but 2 parameters were supplied
  --> file6.rs:132:34
    |
82  | fn duration_ms_since(time: &Option<SystemTime>) -> u128 {
    | ------------------------------------------------------- defined here
...
132 |             self.total_time_ms = duration_ms_since(&self.program_start, 2);
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This allows to jump to code references such as lines 82 and 132 in the
following snippet error message.

error[E0061]: this function takes 1 parameter but 2 parameters were supplied
  --> file6.rs:132:34
    |
82  | fn duration_ms_since(time: &Option<SystemTime>) -> u128 {
    | ------------------------------------------------------- defined here
...
132 |             self.total_time_ms = duration_ms_since(&self.program_start, 2);
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@rust-highfive
Copy link

r? @brotzeit

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

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.

3 participants