about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/source-script.js
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-06-20 20:13:10 +0200
committerGitHub <noreply@github.com>2022-06-20 20:13:10 +0200
commit3e5800b8d30fba923c5070ae660c1e45a630a191 (patch)
treec04a5a66a82364242edac321dd0d88ccfd92eca1 /src/librustdoc/html/static/js/source-script.js
parenteac149368b9a681ad80fe642e4205760eb1aa93f (diff)
parent3d16c22864087c1ff765ffa60153368226f33968 (diff)
downloadrust-3e5800b8d30fba923c5070ae660c1e45a630a191.tar.gz
rust-3e5800b8d30fba923c5070ae660c1e45a630a191.zip
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 :rose:)

Fixes #94866
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
0 files changed, 0 insertions, 0 deletions