1. 21 6月, 2022 2 次提交
    • M
      Rollup merge of #98267 - compiler-errors:suggest-wildcard-arm, r=oli-obk · 3e5800b8
      Matthias Krüger 提交于
      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
      3e5800b8
    • M
      Rollup merge of #98235 - liuw:mir-gen-drop-magic-value, r=davidtwco · eac14936
      Matthias Krüger 提交于
      Drop magic value 3 from code
      
      Magic value 3 is used to create state for a yield point. It is in fact
      the number of reserved variants.
      
      Lift RESERVED_VARIANTS out to module scope and use it instead.
      eac14936
  2. 20 6月, 2022 38 次提交