File tree 2 files changed +13
-2
lines changed
test/rustdoc-json/reexport
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -209,11 +209,11 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
209
209
}
210
210
211
211
types:: ItemEnum :: Method ( _)
212
+ | types:: ItemEnum :: Module ( _)
212
213
| types:: ItemEnum :: AssocConst { .. }
213
214
| types:: ItemEnum :: AssocType { .. }
214
215
| types:: ItemEnum :: PrimitiveType ( _) => true ,
215
- types:: ItemEnum :: Module ( _)
216
- | types:: ItemEnum :: ExternCrate { .. }
216
+ types:: ItemEnum :: ExternCrate { .. }
217
217
| types:: ItemEnum :: Import ( _)
218
218
| types:: ItemEnum :: StructField ( _)
219
219
| types:: ItemEnum :: Variant ( _)
Original file line number Diff line number Diff line change
1
+ //! Regression test for <https://github.com/rust-lang/rust/issues/100531>
2
+
3
+ #![ feature( no_core) ]
4
+ #![ no_core]
5
+
6
+ #![ crate_name = "export_extern_crate_as_self" ]
7
+
8
+ // ignore-tidy-linelength
9
+
10
+ // @is export_extern_crate_as_self.json "$.index[*][?(@.kind=='module')].name" \"export_extern_crate_as_self\"
11
+ pub extern crate self as export_extern_crate_as_self; // Must be the same name as the crate already has
You can’t perform that action at this time.
0 commit comments