1
Fork 0
rust/compiler/rustc_mir_build/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
..
build Auto merge of #97931 - xldenis:fix-if-let-source-scopes, r=nagisa 2022-06-20 03:08:52 +00:00
thir Be more hygenic with spans 2022-06-19 16:47:21 -07:00
check_unsafety.rs Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
lib.rs Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
lints.rs Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00