diff options
| author | bors <bors@rust-lang.org> | 2018-04-15 01:26:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-04-15 01:26:11 +0000 |
| commit | d4d43e248340b6acaf02f4439713c160fd77a846 (patch) | |
| tree | 2d0b1186998168cfda5e25ecb5b532449b1bdfd4 /src/test/incremental/thinlto | |
| parent | bd40cbbe1f42bfcc18a823dd46f584127f6578f2 (diff) | |
| parent | f367567e06b9c05938b38df44e1dc990eb12cb26 (diff) | |
| download | rust-d4d43e248340b6acaf02f4439713c160fd77a846.tar.gz rust-d4d43e248340b6acaf02f4439713c160fd77a846.zip | |
Auto merge of #48173 - GuillaumeGomez:error-codes-libsyntax_ext, r=estebank
Add error codes for libsyntax_ext
I intend to add error codes for `libsyntax_ext` as well. However, they cannot be used at stage 0 directly so I thought it might be possible to enable them at the stage 1 only so we can have access to the macros. However, the error code registration seems to not work this way. Currently I get the following error:
```
error: used diagnostic code E0660 not registered
--> libsyntax_ext/asm.rs:93:25
|
93 | span_err!(cx, sp, E0660, "malformed inline assembly");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: used diagnostic code E0661 not registered
--> libsyntax_ext/asm.rs:151:33
|
151 | / span_err!(cx, sp, E0661,
152 | | "output operand constraint lacks '=' or '+'");
| |________________________________________________________________________________________^
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: aborting due to 2 previous errors
error: Could not compile `syntax_ext`.
```
If anyone has an idea, I'd gladly take it. I'm trying to figure this out on my side as well. I also opened this PR to know if it was worth it to continue (maybe we don't want this?).
Anyway, any answer for both questions is very welcome!
cc @rust-lang/compiler
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
