8000 Rollup of 7 pull requests by JohnTitor · Pull Request #75276 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Rollup of 7 pull requests #75276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
Aug 8, 2020
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
bbcacdd
Don't call a function in function-arguments-naked.rs
Aaron1011 Aug 6, 2020
0aee186
make MaybeUninit::as_(mut_)ptr const
RalfJung Aug 7, 2020
ec5d78d
fix feature gate and tracking issue
RalfJung Aug 7, 2020
a530934
clean up const-hacks in int endianess conversion functions
RalfJung Aug 7, 2020
91dda2c
Only test function-arguments-naked.rs on x86_64
Aaron1011 Aug 7, 2020
c34c77c
Apply `extern "C"` calling convention
Aaron1011 Aug 7, 2020
7d4565b
Add missing backtick
giraffate Aug 5, 2020
7e9a848
Small cleanup
estebank Aug 7, 2020
3ef8c72
fix clippy::expect_fun_call: use unwrap_or_else to prevent panic mess…
matthiaskrgr Aug 1, 2020
8bc1f91
fix clippy::filter_next: use .find(..) instead of .filter(..).next()
matthiaskrgr Aug 1, 2020
fca81fa
fix clippy::iter_next_slice: use .get(0) instead of .iter().next()
matthiaskrgr Aug 1, 2020
fb975cd
fix clippy::map_identity: remove redundant .map(|x| x) call
matthiaskrgr Aug 1, 2020
27bb689
fix clippy::redundant_clone: remove redundant clones
matthiaskrgr Aug 1, 2020
09e29e7
fix clippy::redundant_pattern_matching: use .is_some() instead of if …
matthiaskrgr Aug 1, 2020
f3ec5be
fix clippy::single_char_pattern: use char instead of string single-ch…
matthiaskrgr Aug 1, 2020
a1c2212
fix clippy::unit_arg: make it explicit that Ok(()) is being returned
matthiaskrgr Aug 1, 2020
f6b1857
fix clippy::unnecessary_mut_passed: function arg is not required to b…
matthiaskrgr Aug 1, 2020
eccc2fe
fix clippy::unneeded_wildcard_pattern: remove redundant wildcard pattern
matthiaskrgr Aug 1, 2020
057730c
fix clippy::len_zero: use is_empty() instead of comparing .len() to zero
matthiaskrgr Aug 1, 2020
63c0d9c
Display elided lifetime for non-reference type in doc
8000 nbdd0121 Aug 6, 2020
505d157
Display elided lifetime for external paths
nbdd0121 Aug 7, 2020
f95cfe5
fix clippy::redundant_closure: remove redundant closures and call fun…
matthiaskrgr Aug 7, 2020
ea9ccfa
fix clippy::while_let_loop: use while let{} instead of loop { if ... …
matthiaskrgr Aug 7, 2020
4ba1a19
fix clippy::into_iter_on_ref: use .iter() instead of into_iter() on r…
matthiaskrgr Aug 7, 2020
15dcda3
fix clippy::map_clone: use .cloned() instead of .map(|x| x.clone())
matthiaskrgr Aug 7, 2020
ff692ab
fix clippy::clone_on_copy: don't clone types that are copy
matthiaskrgr Aug 7, 2020
a605e51
fix clippy::needless_return: remove unneeded return statements
matthiaskrgr Aug 7, 2020
541fbbb
Cross-crate doc inlining test case for elided lifetime
nbdd0121 Aug 8, 2020
f5d2ffd
Rollup merge of #75224 - Aaron1011:fix/function-arguments-naked, r=Am…
JohnTitor Aug 8, 2020
255434d
Rollup merge of #75237 - nbdd0121:rustdoc, r=jyn514
JohnTitor Aug 8, 2020
b032a15
Rollup merge of #75250 - RalfJung:uninit-const-ptr, r=oli-obk
JohnTitor Aug 8, 2020
02bf036
Rollup merge of #75253 - RalfJung:cleanup-const-hack, r=oli-obk
JohnTitor Aug 8, 2020
2c1fe50
Rollup merge of #75259 - giraffate:add_missing_backtick, r=lcnr
JohnTitor Aug 8, 2020
81546de
Rollup merge of #75267 - estebank:cleanup, r=Dylan-DPC
JohnTitor Aug 8, 2020
21bfe52
Rollup merge of #75270 - matthiaskrgr:clippy_aug_1, r=Dylan-DPC
JohnTitor Aug 8, 2020
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
fix clippy::map_identity: remove redundant .map(|x| x) call
  • Loading branch information
matthiaskrgr committed Aug 7, 2020
commit fb975cd6fb0858fe285376792dcf40d324ebfad5
2 changes: 1 addition & 1 deletion src/librustc_parse_format/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ fn find_skips_from_snippet(
}

let r_start = str_style.map(|r| r + 1).unwrap_or(0);
let r_end = str_style.map(|r| r).unwrap_or(0);
let r_end = str_style.unwrap_or(0);
let s = &snippet[r_start + 1..snippet.len() - r_end - 1];
(find_skips(s, str_style.is_some()), true)
}
Expand Down
0