Skip to content
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

injected code results in errors that emacs hates #3530

Closed
brson opened this issue Sep 19, 2012 · 11 comments
Closed

injected code results in errors that emacs hates #3530

brson opened this issue Sep 19, 2012 · 11 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints P-low Low priority

Comments

@brson
Copy link
Contributor

brson commented Sep 19, 2012

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.

@graydon
Copy link
Contributor

graydon commented Sep 19, 2012

intrinsic.rs is moving to core now that we have #[lang] items; core-macros will also go away when we figure out a mechanism for pulling in syntax extensions and/or macro definitions in other crates.

In general I think "pointing to source files on disk" isn't going to work so well, since it implies the end-user has a source-file. I'd prefer not to be shipping .rs files as part of the end-user distribution / make install file set.

@catamorphism
Copy link
Contributor

Bumping to 0.7; this seems like low priority compared to the million and one traits bugs.

@catamorphism
Copy link
Contributor

Not critical for 0.7. Nominating for milestone 5, production-ready.

@graydon
Copy link
Contributor

graydon commented May 9, 2013

should say something that does not make emacs mad, but there is no file to point to.

@graydon
Copy link
Contributor

graydon commented May 9, 2013

accepted for production-ready milestone

@emberian
Copy link
Member

emberian commented Jul 7, 2013

still relevant

@bblum
Copy link
Contributor

bblum commented Aug 19, 2013

these macro errors produce a "note: expansion site" message, right? perhaps the emacs plugin could be configured to recognise a string such as "" and look for the expansion site message below.

@pnkfelix
Copy link
Member

part of #8793

@pnkfelix
Copy link
Member

assigning P-low.

@steveklabnik
Copy link
Member

Triage: I don't use emacs, but these errors are the same, so I'm guessing this is still the same.

@steveklabnik
Copy link
Member

Moved to rust-lang/rust-mode#4

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Dec 15, 2018
Changes:

````
rustup rust-lang#52994
Fix test
Line length fix
Remove references to sized for end users
Remove DUMMY_SP
Add suggestion for replacement
Update lint definitions
Lint for Vec<Box<T: Sized>> - Closes rust-lang#3530
Fix doc_markdown mixed case false positive
question_mark: Suggest Some(opt?) for if-else
redundant_field_names: Do not trigger on path with type params
question_mark: Lint only early returns
question_mark: Fix applicability
Remove obsolete comment
new_without_default, partialeq_ne_impl: Use span_lint_node
Update .stderr after rebase
cargo fmt and remove stabilized feature
Make suggestion Applicability::MachineApplicable
Address review feedback
Extract method
Check array lengths to prevent OOB access
Add suggestion for explicit_write lint
Fix write_with_newline escaping false positive
````
bors added a commit that referenced this issue Dec 17, 2018
submodules: update clippy from b7a431e to a416c5e

Changes:

````
rustup #52994
Fix test
Line length fix
Remove references to sized for end users
Remove DUMMY_SP
Add suggestion for replacement
Update lint definitions
Lint for Vec<Box<T: Sized>> - Closes #3530
Fix doc_markdown mixed case false positive
question_mark: Suggest Some(opt?) for if-else
redundant_field_names: Do not trigger on path with type params
question_mark: Lint only early returns
question_mark: Fix applicability
Remove obsolete comment
new_without_default, partialeq_ne_impl: Use span_lint_node
Update .stderr after rebase
cargo fmt and remove stabilized feature
Make suggestion Applicability::MachineApplicable
Address review feedback
Extract method
Check array lengths to prevent OOB access
Add suggestion for explicit_write lint
Fix write_with_newline escaping false positive
````

make toolstate green again
bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this issue May 4, 2024
Don’t print `Preparing a sysroot` when `-q`/`--quiet` is passed

Resolves rust-lang#3530.

This also fixes a typo in `cargo miri --help` that I found while trying to run the `--print-sysroot` example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints P-low Low priority
Projects
None yet
Development

No branches or pull requests

7 participants