Skip to content

Commit c781d15

Browse files
committed
adjust Deref comment
1 parent 3fd1af5 commit c781d15

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/librustc_mir/interpret/validity.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,11 @@ fn write_path(out: &mut String, path: &Vec<PathElem>) {
114114
ClosureVar(name) => write!(out, ".<closure-var({})>", name),
115115
TupleElem(idx) => write!(out, ".{}", idx),
116116
ArrayElem(idx) => write!(out, "[{}]", idx),
117-
Deref => {
118-
// This does not match Rust syntax, but it is more readable for long paths -- and
119-
// some of the other items here also are not Rust syntax. Actually we can't
120-
// even use the usual syntax because we are just showing the projections,
121-
// not the root.
122-
write!(out, ".<deref>")
123-
}
117+
// `.<deref>` does not match Rust syntax, but it is more readable for long paths -- and
118+
// some of the other items here also are not Rust syntax. Actually we can't
119+
// even use the usual syntax because we are just showing the projections,
120+
// not the root.
121+
Deref => write!(out, ".<deref>"),
124122
Tag => write!(out, ".<enum-tag>"),
125123
DynDowncast => write!(out, ".<dyn-downcast>"),
126124
}

0 commit comments

Comments
 (0)