diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-02-14 16:54:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-14 16:54:45 +0100 |
| commit | 641c3785dc875744fae75d5c1db12708a819e235 (patch) | |
| tree | c9fd4f4f525aaa389a6bba57dcaa061e181ed8e5 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | e3b2655c3a37b9655cca934c475672517297b42f (diff) | |
| parent | be4ea06643a5bd4ff3cb91efdaafd7acb070cb30 (diff) | |
| download | rust-641c3785dc875744fae75d5c1db12708a819e235.tar.gz rust-641c3785dc875744fae75d5c1db12708a819e235.zip | |
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`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
