]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #90278 - notriddle:notriddle/highlight-ptr, r=jyn541,GuillaumeGomez
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 27 Oct 2021 04:11:38 +0000 (06:11 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Oct 2021 04:11:38 +0000 (06:11 +0200)
commit96c0e7178821865c62585ca115230f9808d3b954
tree046b61622b5d2f4b887a006e6b68f4cb67e9da3e
parent60cad9789c8ab22bc008f88817001d538acb40b3
parent3a79370367b6b606c5682b17cf601f34df9690fd
Rollup merge of #90278 - notriddle:notriddle/highlight-ptr, r=jyn541,GuillaumeGomez

rustdoc: use better highlighting for *const, *mut, and &mut

This generates more consistent HTML for these RefKeyWord combinations.

Before:

![image](https://user-images.githubusercontent.com/1593513/138742752-7e00a3f7-4621-4c62-82d1-3e4c2ef503d1.png)

After:

![image](https://user-images.githubusercontent.com/1593513/138743955-90abcdcd-fc88-4e2f-95bb-c1b1635c0001.png)
src/librustdoc/html/highlight.rs