Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
41f70f3
Revert "Temporarily rename int_roundings functions to avoid conflicts"
jhpratt Nov 22, 2021
d9f82f9
Remove Select trait
calebzulawski Dec 4, 2021
81484a3
Merge portable-simd#207 - ./feature/simplify-select
workingjubilee Dec 5, 2021
533f0fc
Use relative intrinsics paths for bitmasks
workingjubilee Dec 11, 2021
070bf94
Remove `in_band_lifetimes` from `rustc_middle`
Aaron1011 Dec 16, 2021
a5b3dfe
Run x.py fmt
Aaron1011 Dec 16, 2021
23c172f
Merge commit '533f0fc81ab9ba097779fcd27c8f9ea12261fef5' into psimd
petrochenkov Dec 17, 2021
9ca26f1
Enable `#[thread_local]` for all windows-msvc targets
ChrisDenton Dec 17, 2021
391332c
Rename `has_elf_tls` to `has_thread_local`
ChrisDenton Dec 17, 2021
574bc67
Update example code for Vec::splice to change the length
ajtribick Dec 18, 2021
dea1c68
Remove `collapsed` field
jyn514 Dec 18, 2021
1f1f721
Remove unnecessary `need_backline` function
jyn514 Dec 18, 2021
6d26895
Rollup merge of #91141 - jhpratt:int_roundings, r=joshtriplett
matthiaskrgr Dec 19, 2021
4d5ffc4
Rollup merge of #91984 - Aaron1011:rustc-middle-lifetime, r=oli-obk
matthiaskrgr Dec 19, 2021
a2db900
Rollup merge of #92028 - petrochenkov:psimd, r=Mark-Simulacrum
matthiaskrgr Dec 19, 2021
4dbe966
Rollup merge of #92042 - ChrisDenton:msvc-static-tls, r=nagisa
matthiaskrgr Dec 19, 2021
690d6b0
Rollup merge of #92071 - ajtribick:patch-1, r=the8472
matthiaskrgr Dec 19, 2021
1f080f6
Rollup merge of #92077 - jyn514:remove-collapsed, r=GuillaumeGomez
matthiaskrgr Dec 19, 2021
3340666
Rollup merge of #92081 - jyn514:need-backline, r=GuillaumeGomez
matthiaskrgr Dec 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary need_backline function
  • Loading branch information
jyn514 committed Dec 18, 2021
commit 1f1f7214caaae9221e15dbfddeb65e31a94dda73
10 changes: 3 additions & 7 deletions src/librustdoc/clean/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1033,12 +1033,6 @@ impl Attributes {
) -> Attributes {
let mut doc_strings: Vec<DocFragment> = vec![];

fn update_need_backline(doc_strings: &mut Vec<DocFragment>) {
if let Some(prev) = doc_strings.last_mut() {
prev.need_backline = true;
}
}

let clean_attr = |(attr, parent_module): (&ast::Attribute, Option<DefId>)| {
if let Some(value) = attr.doc_str() {
trace!("got doc_str={:?}", value);
Expand All @@ -1058,7 +1052,9 @@ impl Attributes {
indent: 0,
};

update_need_backline(&mut doc_strings);
if let Some(prev) = doc_strings.last_mut() {
prev.need_backline = true;
}

doc_strings.push(frag);

Expand Down