Skip to content

Commit ec97b0f

Browse files
Update to new API
1 parent 3646a09 commit ec97b0f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/librustdoc/clean/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ impl Item {
807807
) -> Vec<String> {
808808
let mut attrs = self.attributes_without_repr(tcx, is_json);
809809

810-
if let Some(repr_attr) = self.repr(tcx, cache) {
810+
if let Some(repr_attr) = self.repr(tcx, cache, is_json) {
811811
attrs.push(repr_attr);
812812
}
813813
attrs

src/librustdoc/html/render/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ fn render_repr_attributes_in_code(
12221222
def_id: DefId,
12231223
item_type: ItemType,
12241224
) {
1225-
if let Some(repr) = clean::repr_attributes(cx.tcx(), cx.cache(), def_id, item_type) {
1225+
if let Some(repr) = clean::repr_attributes(cx.tcx(), cx.cache(), def_id, item_type, false) {
12261226
render_code_attribute(CodeAttribute(repr), w);
12271227
}
12281228
}

src/librustdoc/html/render/print_item.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,6 +1479,7 @@ impl<'a, 'cx: 'a> ItemUnion<'a, 'cx> {
14791479
self.cx.cache(),
14801480
self.def_id,
14811481
ItemType::Union,
1482+
false,
14821483
) {
14831484
writeln!(f, "{repr}")?;
14841485
};

0 commit comments

Comments
 (0)