Skip to content

injected code results in errors that emacs hates #4

@steveklabnik

Description

@steveklabnik

Issue by brson
Wednesday Sep 19, 2012 at 00:56 GMT

For earlier discussion, see rust-lang/rust#3530

This issue was labelled with: A-diagnostics, A-tools, I-wrong, P-low in the Rust repository


For example:

<core-macros>:3:10: 3:61 note: in expansion of #error

Emacs wants to load <core-macros> and interrupts your workflow to prompt for it. Injected code should come from files on disk (like intrinsic.rs) and we should use the correct file path when inserting them into the AST, so that the error messages work.

Alternately, we can come up with another way to indicate injected code so that the diagnostic emitter can generate error messages that emacs doesn't complain about. This could be a better solution, since getting dumped into core_macros.rs may not be so useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions