• J
    Don't require a `DocContext` for `report_diagnostic` · b3c4e25e
    Joshua Nelson 提交于
    This is needed for the next commit, which needs access to the `cx` from
    within the `decorate` closure.
    
    - Change `as_local_hir_id` to an associated function, since it only
      needs a `TyCtxt`
    - Change `source_span_for_markdown_range` to only take a `TyCtxt`
    b3c4e25e
check_code_block_syntax.rs 5.2 KB