Skip to content

Commit aa3bf6f

Browse files
Update rustc_resolve unit tests
1 parent a36c462 commit aa3bf6f

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_resolve/src/rustdoc

1 file changed

+3
-3
lines changed

compiler/rustc_resolve/src/rustdoc/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::path::PathBuf;
22

33
use rustc_span::source_map::{FilePathMapping, SourceMap};
44
use rustc_span::symbol::sym;
5-
use rustc_span::{BytePos, Span};
5+
use rustc_span::{BytePos, DUMMY_SP, Span};
66

77
use super::{DocFragment, DocFragmentKind, source_span_for_markdown_range_inner};
88

@@ -17,7 +17,7 @@ fn single_backtick() {
1717
&[DocFragment {
1818
span: Span::with_root_ctxt(BytePos(8), BytePos(11)),
1919
item_id: None,
20-
kind: DocFragmentKind::RawDoc,
20+
kind: DocFragmentKind::Raw(DUMMY_SP),
2121
doc: sym::empty, // unused placeholder
2222
indent: 0,
2323
from_expansion: false,
@@ -40,7 +40,7 @@ fn utf8() {
4040
&[DocFragment {
4141
span: Span::with_root_ctxt(BytePos(8), BytePos(14)),
4242
item_id: None,
43-
kind: DocFragmentKind::RawDoc,
43+
kind: DocFragmentKind::Raw(DUMMY_SP),
4444
doc: sym::empty, // unused placeholder
4545
indent: 0,
4646
from_expansion: false,

0 commit comments

Comments
 (0)