Skip to content
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

Rollup of 14 pull requests #78952

Closed
wants to merge 56 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
d72d5f4
Dogfood Duration API in std::time tests
workingjubilee Oct 22, 2020
ef027a1
Duration::zero() -> Duration::ZERO
workingjubilee Oct 22, 2020
b989d46
Support enable/disable sanitizers/profiler per target
12101111 Oct 25, 2020
af4d178
Fixup tests: Duration::MIN -> ::ZERO
workingjubilee Oct 27, 2020
82f3a23
Remove Duration::MIN entirely
workingjubilee Oct 27, 2020
458a143
Add lint to warn about braces in a panic message.
m-ou-se Oct 18, 2020
d75046f
Allow #[rustc_diagnostic_item] on macros.
m-ou-se Oct 18, 2020
561b872
Mark the panic macros as diagnostic items.
m-ou-se Oct 18, 2020
ee99096
Specialize panic_fmt lint for the {core,std}::panic!() macros.
m-ou-se Oct 18, 2020
00dd663
Make panic_fmt lint work properly for assert!(expr, msg) too.
m-ou-se Oct 18, 2020
5c5232a
Expand assert!(expr) to panic() function instead of panic!() macro.
m-ou-se Oct 18, 2020
3e8350e
Add test for the panic_fmt lint.
m-ou-se Oct 18, 2020
098aaf9
Improve panic_fmt message for panic!("{}") with a fmt placeholder.
m-ou-se Oct 18, 2020
d17364e
Formatting.
m-ou-se Oct 18, 2020
b754e2f
Test for formating placeholders in panic_fmt lint test.
m-ou-se Oct 18, 2020
44a0318
Add cfg(not(bootstrap)) on the new rustc_diagnostic_item attributes.
m-ou-se Oct 18, 2020
f6e4459
Don't see `{{}}` as placeholder in panic_fmt lint.
m-ou-se Oct 18, 2020
6dce5b4
Fix brace problem in panic message in rustc_expand.
m-ou-se Oct 18, 2020
671d3e3
Ignore panic_fmt lint in macro-comma-behavior-rpass ui test.
m-ou-se Oct 18, 2020
1481f0d
Also apply panic_fmt lint suggestions to debug_assert!().
m-ou-se Oct 18, 2020
7489ae2
Ignore panic_fmt lint in format-args-capture ui test.
m-ou-se Oct 18, 2020
e6a6120
Update mir-opt test output for new assert macro implementation.
m-ou-se Oct 19, 2020
33a3f06
Fix braces in panic message in test.
m-ou-se Oct 19, 2020
1eb0a2c
Add cfg(not(test)) to std_panic_macro rustc_diagnostic_item.
m-ou-se Oct 19, 2020
db162b6
Small cleanups in assert!() and panic_fmt lint.
m-ou-se Oct 19, 2020
8212aae
Parse the format string for the panic_fmt lint for better warnings.
m-ou-se Oct 20, 2020
1e4bc20
Improve panic_fmt error messages for invalid format strings too.
m-ou-se Oct 20, 2020
9af971e
Test that panic_fmt lint doesn't trigger for custom panic macro.
m-ou-se Oct 24, 2020
2ab39e0
Mark panic_fmt suggestion as machine applicable.
m-ou-se Oct 28, 2020
d2581f6
Improve panic_fmt lint messages.
m-ou-se Oct 29, 2020
1e23473
Add test for panic_fmt lint with external panic!()-calling macro.
m-ou-se Oct 29, 2020
439171e
look at assoc ct, check the type of nodes
lcnr Nov 7, 2020
685fd53
BTreeMap: split off most code of append, slightly improve interfaces
ssomers Oct 26, 2020
ffa70d7
Support inlining diverging function calls
tmiasko Nov 9, 2020
26f0f12
Upgrading dlmalloc to 0.2.1
raoulstrackx Nov 9, 2020
c8943c6
Add flags customizing behaviour of MIR inlining
tmiasko Nov 10, 2020
03eec5c
Cleanup and comment intra-doc link pass
jyn514 Nov 10, 2020
ce91c68
rustc_taret: Remove `TargetOptions::is_like_android`
petrochenkov Nov 10, 2020
ca17a91
rustc_target: Move target env "gnu" from `linux_base` to `linux_gnu_b…
petrochenkov Nov 10, 2020
1854425
Fix typo in comment
eltociear Nov 11, 2020
de84ad9
Implement destructuring assignment for structs and slices
fanzier Nov 7, 2020
2453ce7
Ship llvm-cov through llvm-tools
dalance Nov 11, 2020
80058c5
Rollup merge of #78088 - fusion-engineering-forks:panic-fmt-lint, r=e…
jonas-schievink Nov 11, 2020
5b27915
Rollup merge of #78138 - fortanix:raoul/dlmalloc0.2, r=Mark-Simulacrum
jonas-schievink Nov 11, 2020
d38a21c
Rollup merge of #78216 - workingjubilee:duration-zero, r=m-ou-se
jonas-schievink Nov 11, 2020
82a2731
Rollup merge of #78354 - 12101111:rustbuild_profiler, r=Mark-Simulacrum
jonas-schievink Nov 11, 2020
0b5e169
Rollup merge of #78417 - ssomers:btree_chop_up_2, r=Mark-Simulacrum
jonas-schievink Nov 11, 2020
727b0aa
Rollup merge of #78832 - lcnr:const-evaluatable-unevaluated, r=oli-obk
jonas-schievink Nov 11, 2020
598da98
Rollup merge of #78836 - fanzier:struct-and-slice-destructuring, r=pe…
jonas-schievink Nov 11, 2020
16937db
Rollup merge of #78873 - tmiasko:inline-opts, r=oli-obk
jonas-schievink Nov 11, 2020
8185c0d
Rollup merge of #78899 - tmiasko:inline-diverging, r=oli-obk
jonas-schievink Nov 11, 2020
79b6b2c
Rollup merge of #78923 - jyn514:intra-doc-comments, r=Manishearth
jonas-schievink Nov 11, 2020
b1c5e96
Rollup merge of #78929 - petrochenkov:linuxbase, r=joshtriplett
jonas-schievink Nov 11, 2020
fb8adb3
Rollup merge of #78930 - petrochenkov:notlikeandroid, r=Mark-Simulacrum
jonas-schievink Nov 11, 2020
30e7c91
Rollup merge of #78942 - eltociear:patch-1, r=jonas-schievink
jonas-schievink Nov 11, 2020
68c5bc3
Rollup merge of #78947 - dalance:llvm_cov, r=Mark-Simulacrum
jonas-schievink Nov 11, 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
2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_lints/src/loops.rs
Original file line number Diff line number Diff line change
@@ -3089,7 +3089,7 @@ impl<'tcx> Visitor<'tcx> for IterFunctionVisitor {
}
}

/// Detect the occurences of calls to `iter` or `into_iter` for the
/// Detect the occurrences of calls to `iter` or `into_iter` for the
/// given identifier
fn detect_iter_and_into_iters<'tcx>(block: &'tcx Block<'tcx>, identifier: Ident) -> Option<Vec<IterFunction>> {
let mut visitor = IterFunctionVisitor {