rust/compiler/rustc_builtin_macros/src
Matthias Krüger 6cfe9af6a0
Rollup merge of #91575 - compiler-errors:issue-91556, r=cjgillot
Fix ICE on format string of macro with secondary-label

This generalizes the fix #86104 to also correctly skip `Span::from_inner` for the `secondary_label` of a format macro parsing error as well.

We can alternatively skip the `span_label` diagnostic call for the secondary label as well, since that label probably only makes sense when the _proper_ span is computed.

Fixes #91556
2021-12-10 22:40:35 +01:00
..
deriving Annotate derived spans and move span suggestion code 2021-12-03 18:41:40 +00:00
format_foreign Improve error message for printf-style format strings 2021-09-29 02:02:45 +02:00
asm.rs Add initial AST and MIR support for unwinding from inline assembly 2021-12-03 23:51:46 +01:00
assert.rs Use correct edition for panic in [debug_]assert!() etc. 2021-10-07 14:27:08 +02:00
cfg.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
cfg_accessible.rs expand: Tell built-in macros whether we are currently in forced expansion mode 2020-11-19 19:25:20 +03:00
cfg_eval.rs Rollup merge of #91313 - petrochenkov:cratexp, r=Aaron1011 2021-12-01 20:57:43 +01:00
cmdline_attrs.rs Unconditionally capture tokens for attributes. 2020-10-21 18:57:29 -04:00
compile_error.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
concat.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
concat_bytes.rs Implement concat_bytes! 2021-12-06 21:05:13 -05:00
concat_idents.rs Practice diagnostic message convention 2021-10-03 16:16:28 +09:00
derive.rs rustc_span: Ident::invalid -> Ident::empty 2021-10-17 23:20:30 +03:00
env.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
format.rs Fix span calculation on secondary_label as well 2021-12-09 09:09:39 -08:00
format_foreign.rs Improve error message for printf-style format strings 2021-09-29 02:02:45 +02:00
global_allocator.rs ast: Fix naming conventions in AST structures 2021-11-07 21:38:17 +08:00
lib.rs Implement concat_bytes! 2021-12-06 21:05:13 -05:00
llvm_asm.rs Rollup merge of #80495 - jyn514:rename-empty, r=petrochenkov 2020-12-30 20:56:58 +00:00
log_syntax.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
panic.rs Use correct edition for panic in [debug_]assert!() etc. 2021-10-07 14:27:08 +02:00
proc_macro_harness.rs Compute proc_macros in resolutions. 2021-09-01 20:13:16 +02:00
source_util.rs Compute a better lint_node_id during expansion 2021-07-17 23:03:56 -05:00
standard_library_imports.rs rustc_span: Ident::invalid -> Ident::empty 2021-10-17 23:20:30 +03:00
test.rs ast: Fix naming conventions in AST structures 2021-11-07 21:38:17 +08:00
test_harness.rs expand: Turn ast::Crate into a first class expansion target 2021-11-28 15:48:55 +08:00
trace_macros.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
util.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00