Files
rust/src/etc
Dylan DPC 641c3785dc Rollup merge of #81891 - CraftSpider:fn-header, r=jyn514
[rustdoc-json] Make `header` a vec of modifiers, and FunctionPointer consistent

Bumps version number and adds tests, this is a breaking change. I can split this into two (`is_unsafe` -> `header` and `header: Vec<Modifiers>`) if desired.

Rationale: Modifiers are individual notes on a function, it makes more sense for them to be a list of an independent enum over a String which is inconsistently exposing the HIR representation (prefix_str vs custom literals).
Function pointers currently only support `unsafe`, but there has been talk on and off about allowing them to also support `const`, and this makes handling their modifiers consistent with handling those of a function, allowing better shared code.

`@rustbot` modify labels: +A-rustdoc-json +T-rustdoc
CC: `@HeroicKatora`
r? `@jyn514`
2021-02-14 16:54:45 +01:00
..
2020-12-28 12:14:49 -08:00
2018-12-25 21:08:33 -07:00
2016-08-22 01:24:01 -04:00
2015-07-30 06:35:42 +10:00
2017-11-16 13:34:13 -05:00
2020-10-07 19:50:27 -04:00
2018-12-25 21:08:33 -07:00