about summary refs log tree commit diff
path: root/src/test/rustdoc/const-generics
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-243/+0
2022-09-25rustdoc: update test cases now that code-header is used without in-bandMichael Howell-13/+13
2022-08-31Update rustdoc testsGuillaume Gomez-4/+4
2022-07-19tests: fix `rustdoc` testsArtur Sinila-4/+4
2022-07-05rustdoc: Add more semantic information to impl idspierwill-7/+7
Instead of generating `#impl`, `#impl-1`, etc., generate IDs like `#impl-Foo<M>`. Co-authored-by: Noah Lev <camelidcamel@gmail.com>
2022-02-22Bless rustdoc testDeadbeef-1/+1
2022-02-02Emit valid HTML from rustdocJacob Hoffman-Andrews-12/+10
Previously, tidy-html5 (`tidy`) would complain about a few things in our HTML. The main thing is that `<summary>` tags can't contain `<div>`s. That's easily fixed by changing out the `<div>`s for `<span>`s with `display: block`. However, there's also a rule that `<span>`s can't contain heading elements. `<span>` permits only "phrasing content" https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span, and `<h3>` (and friends) are "Flow content, heading content, palpable content". https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements We have a wrapping `<div>` that goes around each `<h3>`/`<h4>`, etc. We turn that into a `<section>` rather than a `<span>` because `<section>` permits "flow content". https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section After this change we get only three warnings from tidy, run on struct.String.html: line 6 column 10790 - Warning: trimming empty <span> line 1 column 1118 - Warning: <link> proprietary attribute "disabled" line 1 column 1193 - Warning: <link> proprietary attribute "disabled" The empty `<span>` is a known issue - there's a span in front of the search box to work around a strange Safari issue. The `<link>` attributes are the non-default stylesheets. We can probably refactor theme application to avoid using this proprietary "disabled" attribute.
2021-12-10update testsEllen-1/+0
2021-11-28Fix warnings in rustdoc HTML testsNoah Lev-6/+8
Now that compiletest denies warnings in these tests, they need fixing!
2021-08-30`feature(const_param_types)` -> `feature(adt_const_params)`lcnr-1/+1
2021-08-30`feature(const_generics)` -> `feature(const_param_types)`lcnr-5/+3
2021-08-30remove lazy_normalization_constsEllen-1/+1
2021-08-30rename const_evaluatable_checked to generic_const_exprsEllen-1/+1
:sparkles:
2021-07-25Rustdoc accessibility: use real headers for doc itemsbors-13/+13
Part of #87059 Partially reverts #84703 Preview at: https://notriddle.com/notriddle-rustdoc-test/real-headers/std/index.html
2021-06-12add `@has`Ellen-0/+2
2021-06-12lineEllen-1/+1
2021-06-12dont ICE on `ConstEvaluatable` predicatesEllen-0/+5
2021-06-03add testEllen-0/+6
2021-06-02Update rustdoc testsGuillaume Gomez-1/+1
2021-06-01Replace h3 and h4 containing invalid DOMGuillaume Gomez-9/+9
2021-04-19rustdoc: use details tag for trait implementorsJacob Hoffman-Andrews-1/+1
This switches from JS-generated toggles to using the HTML <details> tag for expanding and collapsing entries in the "Implementors" section.
2021-04-03Remove redundant `ignore-tidy-linelength` annotationsSimon Jakobi-5/+0
This is step 2 towards fixing #77548. In the codegen and codegen-units test suites, the `//` comment markers were kept in order not to affect any source locations. This is because these tests cannot be automatically `--bless`ed.
2020-12-26update testsBastian Kauschke-4/+0
2020-12-01rustdoc: move lazy norm tests into const-genericsBastian Kauschke-0/+18
2020-11-12Handle and test wildcard argumentsJoshua Nelson-2/+1
2020-11-11add rustdoc testBastian Kauschke-0/+148
2020-09-03rustdoc: fix min_const_generics with ty::ParamBastian Kauschke-0/+6
2020-07-31fix rustdoc generic param orderBastian Kauschke-2/+2
2020-06-26Show the values and computation that would overflow a const evaluation or ↵Oliver Scherer-2/+1
propagation
2020-05-05Update testsGuillaume Gomez-1/+1
2020-01-14Code review changes and fix rustdoc test.Ben Lewis-1/+1
2020-01-05rustdoc: HTML escape const valuesOliver Middleton-0/+7
2019-12-24Show value for consts in the documentationOhad Ravid-2/+2
2019-10-22Fix rustdoc const generics testvarkor-0/+1
2019-06-07Fix slice const generic length displayGuillaume Gomez-0/+12
2019-05-28Add a regression test for unevaluated const in rustdocvarkor-0/+21
2019-05-28Add a const-generics folder to rustdoc testsvarkor-0/+31