rust/compiler/rustc_resolve/src
Matthias Krüger 3e5800b8d3
Rollup merge of #98267 - compiler-errors:suggest-wildcard-arm, r=oli-obk
Don't omit comma when suggesting wildcard arm after macro expr

* Also adds `Span::eq_ctxt` to consolidate the various usages of `span.ctxt() == other.ctxt()`
* Also fixes an unhygenic usage of spans which caused the suggestion to render weirdly when we had one arm match in a macro
* Also always suggests a comma (i.e. even after a block) if we're rendering a wildcard arm in a single-line match (looks prettier 🌹)

Fixes #94866
2022-06-20 20:13:10 +02:00
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late Rollup merge of #98267 - compiler-errors:suggest-wildcard-arm, r=oli-obk 2022-06-20 20:13:10 +02:00
access_levels.rs Make ResolverAstLowering a struct. 2022-06-14 22:44:27 +02:00
build_reduced_graph.rs Auto merge of #98106 - cjgillot:split-definitions, r=michaelwoerister 2022-06-17 10:00:11 +00:00
check_unused.rs Make ResolverAstLowering a struct. 2022-06-14 22:44:27 +02:00
def_collector.rs Make ResolverAstLowering a struct. 2022-06-14 22:44:27 +02:00
diagnostics.rs Mention what item is using an invalid Self type 2022-06-19 19:43:40 -07:00
ident.rs implement MacroData 2022-06-15 00:31:21 +09:00
imports.rs implement MacroData 2022-06-15 00:31:21 +09:00
late.rs Make ResolverAstLowering a struct. 2022-06-14 22:44:27 +02:00
lib.rs Auto merge of #98106 - cjgillot:split-definitions, r=michaelwoerister 2022-06-17 10:00:11 +00:00
macros.rs Auto merge of #98106 - cjgillot:split-definitions, r=michaelwoerister 2022-06-17 10:00:11 +00:00