-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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 15 pull requests #74329
Rollup of 15 pull requests #74329
Commits on May 30, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 7527409 - Browse repository at this point
Copy the full SHA 7527409View commit details
Commits on Jun 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 40ee620 - Browse repository at this point
Copy the full SHA 40ee620View commit details
Commits on Jun 23, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 80bcbf5 - Browse repository at this point
Copy the full SHA 80bcbf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb4f9a0 - Browse repository at this point
Copy the full SHA fb4f9a0View commit details -
Auto merge of rust-lang#5694 - wangtheo:issue-5626, r=matthiaskrgr
rust-lang#5626: lint iterator.map(|x| x) changelog: adds a new lint for iterator.map(|x| x) (see rust-lang/rust-clippy#5626) The code also lints for result.map(|x| x) and option.map(|x| x). Also, I'm not sure if I'm checking for type adjustments correctly and I can't think of an example where .map(|x| x) would apply type adjustments.
Configuration menu - View commit details
-
Copy full SHA for 583d644 - Browse repository at this point
Copy the full SHA 583d644View commit details -
Record span of
const
kw in GenericParamKindContext: this is needed to fix rust-lang/rustfmt#4263, which currently records the span of a const generic param incorrectly because the location of the `const` kw is not known. I am not sure how to add tests for this; any guidance in how to do so would be appreciated 🙂
Configuration menu - View commit details
-
Copy full SHA for 7c1b3aa - Browse repository at this point
Copy the full SHA 7c1b3aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5987c7d - Browse repository at this point
Copy the full SHA 5987c7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b498e1d - Browse repository at this point
Copy the full SHA b498e1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bf5434 - Browse repository at this point
Copy the full SHA 6bf5434View commit details
Commits on Jun 24, 2020
-
Auto merge of rust-lang#5745 - montrivo:copy_on_clone, r=phansch
clone_on_copy - add machine applicability Fix rust-lang#4826. Change the applicability of the lint clone_on_copy. Split a test file and run rustfix on the clone_on_copy part. changelog: clone_on_copy - add machine applicability
Configuration menu - View commit details
-
Copy full SHA for a14eab3 - Browse repository at this point
Copy the full SHA a14eab3View commit details -
Auto merge of rust-lang#5701 - ebroto:4874_cmp_owned_fp, r=flip1995
cmp_owned: handle when PartialEq is not implemented symmetrically changelog: Handle asymmetrical implementations of PartialEq in [`cmp_owned`]. Fixes rust-lang#4874
Configuration menu - View commit details
-
Copy full SHA for 46d3304 - Browse repository at this point
Copy the full SHA 46d3304View commit details
Commits on Jun 25, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 3e48aae - Browse repository at this point
Copy the full SHA 3e48aaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa0f1d3 - Browse repository at this point
Copy the full SHA fa0f1d3View commit details -
Auto merge of rust-lang#5748 - carols10cents:tiny-docs-fix, r=flip1995
Change a noun to a verb to make the sentence complete changelog: Fixed some grammar in the documentation for `await_holding_lock`. Just a tiny little thing I found while using clippy <3
Configuration menu - View commit details
-
Copy full SHA for 88fec89 - Browse repository at this point
Copy the full SHA 88fec89View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5ce0e5 - Browse repository at this point
Copy the full SHA f5ce0e5View commit details
Commits on Jun 26, 2020
-
Rollup merge of rust-lang#73597 - ayazhafiz:i/const-span, r=ecstatic-…
…morse Record span of `const` kw in GenericParamKind Context: this is needed for a fix of rust-lang/rustfmt#4263, which currently records the span of a const generic param incorrectly because the location of the `const` kw is not known. I am not sure how to add tests for this; any guidance in how to do so would be appreciated 🙂
Configuration menu - View commit details
-
Copy full SHA for a671ea4 - Browse repository at this point
Copy the full SHA a671ea4View commit details -
Auto merge of rust-lang#73756 - Manishearth:rollup-aehswb2, r=Manishe…
…arth Rollup of 13 pull requests Successful merges: - rust-lang#72620 (Omit DW_AT_linkage_name when it is the same as DW_AT_name) - rust-lang#72967 (Don't move cursor in search box when using arrows to navigate results) - rust-lang#73102 (proc_macro: Stop flattening groups with dummy spans) - rust-lang#73297 (Support configurable deny-warnings for all in-tree crates.) - rust-lang#73507 (Cleanup MinGW LLVM linkage workaround) - rust-lang#73588 (Fix handling of reserved registers for ARM inline asm) - rust-lang#73597 (Record span of `const` kw in GenericParamKind) - rust-lang#73629 (Make AssocOp Copy) - rust-lang#73681 (Update Chalk to 0.14) - rust-lang#73707 (Fix links in `SliceIndex` documentation) - rust-lang#73719 (emitter: column width defaults to 140) - rust-lang#73729 (disable collectionbenches for android) - rust-lang#73748 (Add code block to code in documentation of `List::rebase_onto`) Failed merges: r? @ghost
Configuration menu - View commit details
-
Copy full SHA for 81810fa - Browse repository at this point
Copy the full SHA 81810faView commit details
Commits on Jun 28, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 3c5ee33 - Browse repository at this point
Copy the full SHA 3c5ee33View commit details
Commits on Jun 29, 2020
-
Obviate #[allow(improper_ctypes_definitions)]
Modifies the return type for `fn entry` so that allowing improper_ctypes_definitions is no longer necessary. This change is derived from a similar pattern in `libstd/sys/sgx/abi/usercalls/raw.rs` with `UsercallReturn`.
Configuration menu - View commit details
-
Copy full SHA for 9448ed4 - Browse repository at this point
Copy the full SHA 9448ed4View commit details -
typeck: adding type information to projection
This commit modifies the Place as follow: * remove 'ty' from ProjectionKind * add type information into to Projection * replace 'ty' in Place with 'base_ty' * introduce 'ty()' in `Place` to return the final type of the `Place` * introduce `ty_before_projection()` in `Place` to return the type of a `Place` before i'th projection is applied Closes rust-lang/project-rfc-2229#5
Configuration menu - View commit details
-
Copy full SHA for dfecaef - Browse repository at this point
Copy the full SHA dfecaefView commit details
Commits on Jun 30, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 1e861a2 - Browse repository at this point
Copy the full SHA 1e861a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab649c9 - Browse repository at this point
Copy the full SHA ab649c9View commit details -
Auto merge of rust-lang#5751 - flip1995:rustup, r=Manishearth,flip1995
Rustup cc rust-lang#73743 r? @Manishearth changelog: none
Configuration menu - View commit details
-
Copy full SHA for ccf7cb3 - Browse repository at this point
Copy the full SHA ccf7cb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 814349f - Browse repository at this point
Copy the full SHA 814349fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c5d8f53 - Browse repository at this point
Copy the full SHA c5d8f53View commit details -
Auto merge of rust-lang#5750 - ebroto:blanket_clippy_restriction_lint…
…s, r=Manishearth,flip1995,phansch,oli-obk Lint enabling the whole restriction group I've added it to the `correctness` category, but I may be missing some valid use cases. In that case it could be changed to `pedantic`. changelog: Add [`blanket_clippy_restriction_lints`] to check against enabling the whole restriction group.
Configuration menu - View commit details
-
Copy full SHA for d05d6ab - Browse repository at this point
Copy the full SHA d05d6abView commit details -
Configuration menu - View commit details
-
Copy full SHA for bff6c43 - Browse repository at this point
Copy the full SHA bff6c43View commit details -
Auto merge of rust-lang#5758 - ebroto:5704_unnested_or_pats, r=flip1995
Require `or_patterns` to suggest nesting them changelog: Require `#![feature(or_patterns)]` to trigger [`unnested_or_patterns`] Fixes rust-lang#5704
Configuration menu - View commit details
-
Copy full SHA for 36b7983 - Browse repository at this point
Copy the full SHA 36b7983View commit details
Commits on Jul 1, 2020
-
Fix multiple_crate_versions error
Fix the versions of packages in the multiple_crate_versions ui test by checking in the Cargo.lock for the test package. `ansi_term 0.11` depends on `winapi ^0.3.4`. This means means that the expected stderr for this test would have to be updated whenever `winapi 0.3` is updated otherwise.
Michael Wright committedJul 1, 2020 Configuration menu - View commit details
-
Copy full SHA for 5b9c2ff - Browse repository at this point
Copy the full SHA 5b9c2ffView commit details -
Auto merge of rust-lang#5759 - mikerite:multiple_crate_versions_20200…
…701, r=matthiaskrgr Fix multiple_crate_versions error Fix the versions of packages in the multiple_crate_versions ui test by checking in the Cargo.lock for the test package. `ansi_term 0.11` depends on `winapi ^0.3.4`. This means means that the expected stderr for this test would have to be updated whenever `winapi 0.3` is updated otherwise. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 0860375 - Browse repository at this point
Copy the full SHA 0860375View commit details -
Configuration menu - View commit details
-
Copy full SHA for d347d0c - Browse repository at this point
Copy the full SHA d347d0cView commit details -
Auto merge of rust-lang#5760 - phansch:deprecate-regex-macro, r=Manis…
…hearth Deprecate regex_macro lint Closes rust-lang#2586 changelog: Deprecate regex_macro lint
Configuration menu - View commit details
-
Copy full SHA for 52cc5fc - Browse repository at this point
Copy the full SHA 52cc5fcView commit details
Commits on Jul 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 590e07b - Browse repository at this point
Copy the full SHA 590e07bView commit details -
typeck: check for infer before type impls trait
This commit checks that the target type of the cast (an error related to which is being reported) does not have types to be inferred before checking if it implements the `From` trait. Signed-off-by: David Wood <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bddb266 - Browse repository at this point
Copy the full SHA bddb266View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30c046e - Browse repository at this point
Copy the full SHA 30c046eView commit details
Commits on Jul 3, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a7c58e6 - Browse repository at this point
Copy the full SHA a7c58e6View commit details -
Auto merge of rust-lang#5763 - flip1995:rustup, r=Manishearth
Rustup changelog: none
Configuration menu - View commit details
-
Copy full SHA for c493090 - Browse repository at this point
Copy the full SHA c493090View commit details -
Configuration menu - View commit details
-
Copy full SHA for 754bfb1 - Browse repository at this point
Copy the full SHA 754bfb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5a8f03 - Browse repository at this point
Copy the full SHA d5a8f03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d5930a - Browse repository at this point
Copy the full SHA 2d5930aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c3c4027 - Browse repository at this point
Copy the full SHA c3c4027View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55877d7 - Browse repository at this point
Copy the full SHA 55877d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 346ee96 - Browse repository at this point
Copy the full SHA 346ee96View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6447507 - Browse repository at this point
Copy the full SHA 6447507View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92ecc53 - Browse repository at this point
Copy the full SHA 92ecc53View commit details -
Configuration menu - View commit details
-
Copy full SHA for d617551 - Browse repository at this point
Copy the full SHA d617551View commit details -
Auto merge of rust-lang#5761 - ThibsG:TypeRepetitionThreshold, r=flip…
…1995 Improvements for `type_repetition_in_bounds` lint Some improvements for `type_repetition_in_bounds`: - add a configurable threshold to trigger the lint (rust-lang#4380). The lint won't trigger anymore if there are more bounds (strictly) than `conf.max_trait_bounds` on this type. - take generic args into account over bounded type (rust-lang#4323) - don't lint for predicates generated in macros (rust-lang#4326) Fixes rust-lang#4380, Fixes rust-lang#4323, Fixes rust-lang#4326, Closes rust-lang#3764 changelog: Fix multiple FPs in `type_repetition_in_bounds` and add a configuration option Note: the rust-lang#3764 has already been fixed but not closed
Configuration menu - View commit details
-
Copy full SHA for fff8e72 - Browse repository at this point
Copy the full SHA fff8e72View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa4bee2 - Browse repository at this point
Copy the full SHA aa4bee2View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0fd452 - Browse repository at this point
Copy the full SHA c0fd452View commit details -
Auto merge of rust-lang#4841 - phaylon:pattern-type-mismatch, r=flip1995
Added restriction lint: pattern-type-mismatch changelog: Added a new restriction lint `pattern-type-mismatch`. This lint is especially helpful for beginners learning about the magic behind pattern matching. (This explanation might be worth to include in the next changelog.)
Configuration menu - View commit details
-
Copy full SHA for 57cdf2d - Browse repository at this point
Copy the full SHA 57cdf2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf48a2d - Browse repository at this point
Copy the full SHA bf48a2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82f8d4d - Browse repository at this point
Copy the full SHA 82f8d4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b85796f - Browse repository at this point
Copy the full SHA b85796fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 88c8afd - Browse repository at this point
Copy the full SHA 88c8afdView commit details -
Configuration menu - View commit details
-
Copy full SHA for f73b455 - Browse repository at this point
Copy the full SHA f73b455View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c4de9d - Browse repository at this point
Copy the full SHA 7c4de9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e20475 - Browse repository at this point
Copy the full SHA 5e20475View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5150277 - Browse repository at this point
Copy the full SHA 5150277View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93f0f5d - Browse repository at this point
Copy the full SHA 93f0f5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ccb9998 - Browse repository at this point
Copy the full SHA ccb9998View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ce9812 - Browse repository at this point
Copy the full SHA 6ce9812View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e2d55c - Browse repository at this point
Copy the full SHA 6e2d55cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c32263 - Browse repository at this point
Copy the full SHA 1c32263View commit details
Commits on Jul 4, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c8f700e - Browse repository at this point
Copy the full SHA c8f700eView commit details
Commits on Jul 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 3503247 - Browse repository at this point
Copy the full SHA 3503247View commit details -
Configuration menu - View commit details
-
Copy full SHA for c478b54 - Browse repository at this point
Copy the full SHA c478b54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b1d5e6 - Browse repository at this point
Copy the full SHA 3b1d5e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90580c7 - Browse repository at this point
Copy the full SHA 90580c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f5c98b - Browse repository at this point
Copy the full SHA 5f5c98bView commit details
Commits on Jul 6, 2020
-
Auto merge of rust-lang#5301 - JarredAllen:option_if_let_else, r=flip…
…1995 Suggest `Option::map_or`(_else) for `if let Some { y } else { x }` Fixes rust-lang#5203 There are two issues with this code that I have noticed: - Use of `Option::map_or` causes it to always evaluate the code in the else block. If that block is computationally expensive or if it updates some state (such as getting the next value from an iterator), then this change would cause the code to behave differently. In either of those circumstances, it should suggest Option::map_or_else, which takes both cases as a closure and runs one. However, I don't know how to check if the expression would change some state, so I left the lint's applicability as MaybeIncorrect. - There are lints which can trigger on specific sub-cases of this lint (`if_let_some_result`, `question_mark`, and `while_let_loop`) and suggest different changes (usually better ones because they're more specific). Is this acceptable for clippy to give multiple suggestions, or should I have the code check if those other lints trigger and then not trigger this lint if they do? changelog: Add lint [`option_if_let_else`]
Configuration menu - View commit details
-
Copy full SHA for ac85692 - Browse repository at this point
Copy the full SHA ac85692View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6f1af7 - Browse repository at this point
Copy the full SHA a6f1af7View commit details -
Configuration menu - View commit details
-
Copy full SHA for f627984 - Browse repository at this point
Copy the full SHA f627984View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e8a1be - Browse repository at this point
Copy the full SHA 2e8a1beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c8afa3 - Browse repository at this point
Copy the full SHA 0c8afa3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1740dda - Browse repository at this point
Copy the full SHA 1740ddaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 076ec87 - Browse repository at this point
Copy the full SHA 076ec87View commit details -
Since x.log(y) is actually implemented as x.ln() / y.ln()
Configuration menu - View commit details
-
Copy full SHA for f559682 - Browse repository at this point
Copy the full SHA f559682View commit details -
Configuration menu - View commit details
-
Copy full SHA for db7bc6b - Browse repository at this point
Copy the full SHA db7bc6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6dc066f - Browse repository at this point
Copy the full SHA 6dc066fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6be9491 - Browse repository at this point
Copy the full SHA 6be9491View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3065201 - Browse repository at this point
Copy the full SHA 3065201View commit details -
Auto merge of rust-lang#73978 - Mark-Simulacrum:shrink-paramenv, r=nn…
…ethercote Shrink ParamEnv to 16 bytes r? @nnethercote x.py check passes but I haven't tried running perf or tests
Configuration menu - View commit details
-
Copy full SHA for 4705037 - Browse repository at this point
Copy the full SHA 4705037View commit details
Commits on Jul 7, 2020
-
Rollup merge of rust-lang#73870 - sexxi-goose:projection-ty, r=nikoma…
…tsakis typeck: adding type information to projection This commit modifies the Place as follow: * remove 'ty' from ProjectionKind * add type information into to Projection * replace 'ty' in Place with 'base_ty' * introduce 'ty()' in `Place` to return the final type of the `Place` * introduce `ty_before_projection()` in `Place` to return the type of a `Place` before i'th projection is applied Closes rust-lang/project-rfc-2229#5
Configuration menu - View commit details
-
Copy full SHA for 245b006 - Browse repository at this point
Copy the full SHA 245b006View commit details -
Auto merge of rust-lang#74117 - Manishearth:rollup-ds7z0kx, r=Manishe…
…arth Rollup of 14 pull requests Successful merges: - rust-lang#70563 ([rustdoc] Page hash handling) - rust-lang#73856 (Edit librustc_lexer top-level docs) - rust-lang#73870 (typeck: adding type information to projection) - rust-lang#73953 (Audit hidden/short code suggestions) - rust-lang#73962 (libstd/net/tcp.rs: #![deny(unsafe_op_in_unsafe_fn)]) - rust-lang#73969 (mir: mark mir construction temporaries as internal) - rust-lang#73974 (Move A|Rc::as_ptr from feature(weak_into_raw) to feature(rc_as_ptr)) - rust-lang#74067 (rustdoc: Restore underline text decoration on hover for FQN in header) - rust-lang#74074 (Fix the return type of Windows' `OpenOptionsExt::security_qos_flags`.) - rust-lang#74078 (Always resolve type@primitive as a primitive, not a module) - rust-lang#74089 (Add rust-analyzer to the build manifest) - rust-lang#74090 (Remove unused RUSTC_DEBUG_ASSERTIONS) - rust-lang#74102 (Fix const prop ICE) - rust-lang#74112 (Expand abbreviation in core::ffi description) Failed merges: r? @ghost
Configuration menu - View commit details
-
Copy full SHA for c41fcad - Browse repository at this point
Copy the full SHA c41fcadView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5307cb5 - Browse repository at this point
Copy the full SHA 5307cb5View commit details
Commits on Jul 8, 2020
-
Auto merge of rust-lang#5776 - flip1995:rustup, r=flip1995
Rustup changelog: none r? @ghost
Configuration menu - View commit details
-
Copy full SHA for e12a316 - Browse repository at this point
Copy the full SHA e12a316View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37d75da - Browse repository at this point
Copy the full SHA 37d75daView commit details -
Configuration menu - View commit details
-
Copy full SHA for db1c946 - Browse repository at this point
Copy the full SHA db1c946View commit details
Commits on Jul 9, 2020
-
Configuration menu - View commit details
-
Copy full SHA for dac19e3 - Browse repository at this point
Copy the full SHA dac19e3View commit details -
Auto merge of rust-lang#5771 - montrivo:bugfix/single-match-else, r=m…
…atthiaskrgr single_match_else - single expr/stmt else block corner case One approach to fix rust-lang#3489. See discussion in the issue. changelog: single_match_else - single expr/stmt else block corner case fix
Configuration menu - View commit details
-
Copy full SHA for 45eea9a - Browse repository at this point
Copy the full SHA 45eea9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c79c688 - Browse repository at this point
Copy the full SHA c79c688View commit details -
Auto merge of rust-lang#5781 - giraffate:fix_a_broken_link, r=phansch
Fix a broken link in CONTRIBUTING.md changelog: none
Configuration menu - View commit details
-
Copy full SHA for be88122 - Browse repository at this point
Copy the full SHA be88122View commit details
Commits on Jul 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for cf91c54 - Browse repository at this point
Copy the full SHA cf91c54View commit details -
Move range_minus_one to pedantic
This moves the range_minus_one lint to the pedantic category, so there will not be any warnings emitted by default. This should work around problems where the suggestion is impossible to resolve due to the range consumer only accepting a specific range implementation, rather than the `RangeBounds` trait (see rust-lang#3307). While it is possible to work around this by extracting the boundary into a variable, I don't think clippy should encourage people to disable or work around lints, but instead the lints should be fixable. So hopefully this will help until a proper implementation checks what the range is used for.
Configuration menu - View commit details
-
Copy full SHA for 298a1fa - Browse repository at this point
Copy the full SHA 298a1faView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba2a85d - Browse repository at this point
Copy the full SHA ba2a85dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 780a4c8 - Browse repository at this point
Copy the full SHA 780a4c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b3c7196 - Browse repository at this point
Copy the full SHA b3c7196View commit details -
Configuration menu - View commit details
-
Copy full SHA for afa4148 - Browse repository at this point
Copy the full SHA afa4148View commit details -
Auto merge of rust-lang#5769 - robojumper:match_like_matches_macro, r…
…=phansch new lint: match_like_matches_macro Suggests using the `matches!` macro from `std` where appropriate. `redundant_pattern_matching` has been moved into the `matches` pass to allow suppressing the suggestion where `is_some` and friends are a better replacement. changelog: new lint: `match_like_matches_macro`
Configuration menu - View commit details
-
Copy full SHA for 7d611d9 - Browse repository at this point
Copy the full SHA 7d611d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23d7b3f - Browse repository at this point
Copy the full SHA 23d7b3fView commit details
Commits on Jul 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 1eb0053 - Browse repository at this point
Copy the full SHA 1eb0053View commit details -
Fix out of bounds access by checking length equality BEFORE accessing…
… by index. Fixes rust-lang#5780
Configuration menu - View commit details
-
Copy full SHA for 1b3bc16 - Browse repository at this point
Copy the full SHA 1b3bc16View commit details -
Rollup merge of rust-lang#72920 - oli-obk:const_transmute, r=RalfJung
Stabilize `transmute` in constants and statics but not const fn cc rust-lang#53605 (leaving issue open so we can add `transmute` to `const fn` later) Previous attempt: rust-lang#64011 r? @RalfJung cc @rust-lang/wg-const-eval
Configuration menu - View commit details
-
Copy full SHA for b57ceb4 - Browse repository at this point
Copy the full SHA b57ceb4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 905b5ad - Browse repository at this point
Copy the full SHA 905b5adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c5f8ab - Browse repository at this point
Copy the full SHA 2c5f8abView commit details
Commits on Jul 12, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 9a8b516 - Browse repository at this point
Copy the full SHA 9a8b516View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff5e107 - Browse repository at this point
Copy the full SHA ff5e107View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e05e09 - Browse repository at this point
Copy the full SHA 1e05e09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ff820c - Browse repository at this point
Copy the full SHA 0ff820cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 90a7d24 - Browse repository at this point
Copy the full SHA 90a7d24View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27a966a - Browse repository at this point
Copy the full SHA 27a966aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1d6798 - Browse repository at this point
Copy the full SHA b1d6798View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0281a05 - Browse repository at this point
Copy the full SHA 0281a05View commit details -
Configuration menu - View commit details
-
Copy full SHA for e31898b - Browse repository at this point
Copy the full SHA e31898bView commit details -
pprust: support multiline comments within lines
This commit adds support to rustc_ast_pretty for multiline comments that start and end within a line of source code. Signed-off-by: David Wood <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 083c2f6 - Browse repository at this point
Copy the full SHA 083c2f6View commit details -
Clean up handling of style files in rustdoc
Disable all themes other than `light.css` to prevent rule conflicts
Configuration menu - View commit details
-
Copy full SHA for 0e89f50 - Browse repository at this point
Copy the full SHA 0e89f50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c45cf8 - Browse repository at this point
Copy the full SHA 8c45cf8View commit details -
Update llvm-project to latest origin/rustc/10.0-2020-05-05 commit whi…
…ch includes LVI segfault fix
Configuration menu - View commit details
-
Copy full SHA for ed587f8 - Browse repository at this point
Copy the full SHA ed587f8View commit details
Commits on Jul 13, 2020
-
Auto merge of rust-lang#5790 - flip1995:rustup, r=flip1995
Rustup r? @ghost changelog: none
Configuration menu - View commit details
-
Copy full SHA for fa4a737 - Browse repository at this point
Copy the full SHA fa4a737View commit details -
Rollup merge of rust-lang#5443 - thiagoarrais:issue-2040, r=flip1995
Some accuracy lints for floating point operations This will add some lints for accuracy on floating point operations suggested by @clarfon in rust-lang#2040 (fixes rust-lang#2040). These are the remaining lints: - [x] x.powi(2) => x * x - [x] x.logN() / y.logN() => x.logbase(y) - [x] x.logbase(E) => x.log() - [x] x.logbase(10) => x.log10() - [x] x.logbase(2) => x.log2(). - [x] x * PI / 180 => x.to_radians() - [x] x * 180 / PI => x.to_degrees() - [x] (x + 1).log() => x.log_1p() - [x] sqrt(x * x + y * y) => x.hypot(y) changelog: Included some accuracy lints for floating point operations
Configuration menu - View commit details
-
Copy full SHA for 75d43aa - Browse repository at this point
Copy the full SHA 75d43aaView commit details -
Rollup merge of rust-lang#5752 - chrisduerr:pedantic_ranges, r=flip1995
Move range_minus_one to pedantic This moves the range_minus_one lint to the pedantic category, so there will not be any warnings emitted by default. This should work around problems where the suggestion is impossible to resolve due to the range consumer only accepting a specific range implementation, rather than the `RangeBounds` trait (see rust-lang#3307). While it is possible to work around this by extracting the boundary into a variable, I don't think clippy should encourage people to disable or work around lints, but instead the lints should be fixable. So hopefully this will help until a proper implementation checks what the range is used for. *Please keep the line below* changelog: move [`range_minus_one`] to pedantic
Configuration menu - View commit details
-
Copy full SHA for 019e281 - Browse repository at this point
Copy the full SHA 019e281View commit details -
Rollup merge of rust-lang#5756 - ebroto:5754_sort_by, r=flip1995
unnecessary_sort_by: avoid linting if key borrows changelog: Avoid linting if key borrows in [`unnecessary_sort_by`] Fixes rust-lang#5754 Closes rust-lang#2313
Configuration menu - View commit details
-
Copy full SHA for 32ef448 - Browse repository at this point
Copy the full SHA 32ef448View commit details -
Rollup merge of rust-lang#5784 - matthiaskrgr:ice_5780, r=phansch
Fix out of bounds access by checking length equality BEFORE accessing by index. Fixes rust-lang#5780 changelog: fix out of bounds access in unnested_or_patterns lint. Edit: I did not bother reducing a testcase from `librustc_typeck` crate but I can confirm that with the change the crash no longer occurs.
Configuration menu - View commit details
-
Copy full SHA for 26ede31 - Browse repository at this point
Copy the full SHA 26ede31View commit details -
Rollup merge of rust-lang#5786 - matthiaskrgr:new_lint_issue_templ, r…
…=phansch fix phrase in new_lint issue template changelog: none
Configuration menu - View commit details
-
Copy full SHA for 314b068 - Browse repository at this point
Copy the full SHA 314b068View commit details -
Auto merge of rust-lang#5792 - flip1995:rollup-torc1we, r=flip1995
Rollup of 5 pull requests Successful merges: - rust-lang#5443 (Some accuracy lints for floating point operations) - rust-lang#5752 (Move range_minus_one to pedantic) - rust-lang#5756 (unnecessary_sort_by: avoid linting if key borrows) - rust-lang#5784 (Fix out of bounds access by checking length equality BEFORE accessing by index.) - rust-lang#5786 (fix phrase in new_lint issue template) Failed merges: r? @ghost changelog: rollup
Configuration menu - View commit details
-
Copy full SHA for 4b87008 - Browse repository at this point
Copy the full SHA 4b87008View commit details -
Refactoring to use `constant_context
Use `constant_context`, `.is_str()` and `builtin_index()` to simplify.
Configuration menu - View commit details
-
Copy full SHA for f2419b9 - Browse repository at this point
Copy the full SHA f2419b9View commit details -
Clarify the description for rfind
Changes the example code to illustrate the difference between find and rfind
Configuration menu - View commit details
-
Copy full SHA for d27e7d0 - Browse repository at this point
Copy the full SHA d27e7d0View commit details -
Rename collapsable_if fix suggestion to "collapse nested if block"
The name "try" is confusing when shown as quick fix by rust-analyzer
Configuration menu - View commit details
-
Copy full SHA for ff796b6 - Browse repository at this point
Copy the full SHA ff796b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b409103 - Browse repository at this point
Copy the full SHA b409103View commit details
Commits on Jul 14, 2020
-
Instead of `SmallVec`, because the maximum size is known.
Configuration menu - View commit details
-
Copy full SHA for c492ca4 - Browse repository at this point
Copy the full SHA c492ca4View commit details -
Auto merge of rust-lang#5773 - giraffate:repeat_once, r=flip1995
Add a lint for `.repeat(1)` changelog: New lint `repeat_once` fix rust-lang#3028.
Configuration menu - View commit details
-
Copy full SHA for 12df638 - Browse repository at this point
Copy the full SHA 12df638View commit details -
Auto merge of rust-lang#5732 - bjorn3:patch-1, r=flip1995
Rename collapsable_if fix suggestion to "collapse nested if block" The name "try" is confusing when shown as quick fix by rust-analyzer changelog: Rename `collapsable_if` fix suggestion to "collapse nested if block"
Configuration menu - View commit details
-
Copy full SHA for 2ca58e7 - Browse repository at this point
Copy the full SHA 2ca58e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e9a20f - Browse repository at this point
Copy the full SHA 0e9a20fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f82ac4d - Browse repository at this point
Copy the full SHA f82ac4dView commit details -
Rollup merge of rust-lang#71237 - Cldfire:rustdoc-ayu-theme, r=Guilli…
…aumeGomez Add Ayu theme to rustdoc This is a port of a theme I maintain (https:/Cldfire/ayu-rs) to the native rustdoc theme system. [Ayu](https:/dempfi/ayu) (dark) is a richly-colored dark theme that many people enjoy using across a wide variety of environments. Corresponds to the Ayu theme in [mdBook](https:/rust-lang/mdBook). Some screenshots: ![image](https://user-images.githubusercontent.com/13814214/79547087-6c935780-8061-11ea-8a33-38e9472e9fec.png) ![image](https://user-images.githubusercontent.com/13814214/79547150-8339ae80-8061-11ea-97be-9e13a8b275d7.png) ![image](https://user-images.githubusercontent.com/13814214/79547221-98164200-8061-11ea-9649-9b11ccbb33e3.png) ![image](https://user-images.githubusercontent.com/13814214/79547310-b419e380-8061-11ea-9965-d4f90b2280ab.png) ![image](https://user-images.githubusercontent.com/13814214/79547443-e7f50900-8061-11ea-8872-06d74010691e.png) Note that this pull request also makes some small code changes to allow for disabling theme stylesheets, preventing the rules from all the different themes from conflicting with one another. The only stylesheet that is not disabled is `light.css`; the theming system (quite hackily) switches themes by changing the href on this stylesheet and so permanently disabling all the others works perfectly fine.
Configuration menu - View commit details
-
Copy full SHA for 7efdbb3 - Browse repository at this point
Copy the full SHA 7efdbb3View commit details -
Rollup merge of rust-lang#72481 - marmeladema:duration-consts-2, r=ol…
…i-obk Constify most non-trait `Duration` methods as described in rust-lang#72440 The remaining methods could probably be made const once rust-lang#72449 lands with support for `f<32|64>::is_finite()`.
Configuration menu - View commit details
-
Copy full SHA for 6dda1d4 - Browse repository at this point
Copy the full SHA 6dda1d4View commit details -
Rollup merge of rust-lang#73720 - GuillaumeGomez:cleanup-e0704, r=Dyl…
…an-DPC Clean up E0704 error explanation r? @Dylan-DPC
Configuration menu - View commit details
-
Copy full SHA for ac01a53 - Browse repository at this point
Copy the full SHA ac01a53View commit details -
Rollup merge of rust-lang#73866 - Goirad:fix-entry-improper-ctypes, r…
…=davidtwco Obviate #[allow(improper_ctypes_definitions)] Modifies the return type for `fn entry` so that allowing improper_ctypes_definitions is no longer necessary. This change is derived from a similar pattern in `libstd/sys/sgx/abi/usercalls/raw.rs` with `UsercallReturn`. cc @jethrogb
Configuration menu - View commit details
-
Copy full SHA for 80a162e - Browse repository at this point
Copy the full SHA 80a162eView commit details -
Rollup merge of rust-lang#73965 - davidtwco:issue-73886-non-primitive…
…-slice-cast, r=estebank typeck: check for infer before type impls trait Fixes rust-lang#73886. This PR checks that the target type of the cast (an error related to which is being reported) does not have types to be inferred before checking if it implements the `From` trait. r? @estebank
Configuration menu - View commit details
-
Copy full SHA for 0d2732a - Browse repository at this point
Copy the full SHA 0d2732aView commit details -
Rollup merge of rust-lang#73986 - RalfJung:raw-slice-as-ptr, r=sfackler
add (unchecked) indexing methods to raw (and NonNull) slices This complements the existing (unstable) `len` method. Unfortunately, for non-null slices, we cannot call this method `as_ptr` as that overlaps with the existing method of the same name. If this looks reasonable to accept, I propose to reuse the rust-lang#71146 tracking issue and rename the feature get to `slice_ptr_methods` or so. Cc @SimonSapin Fixes rust-lang#60639
Configuration menu - View commit details
-
Copy full SHA for 7b0097e - Browse repository at this point
Copy the full SHA 7b0097eView commit details -
Rollup merge of rust-lang#74220 - lzutao:windows-path-com, r=LukasKal…
…bertodt Refactor Windows `parse_prefix` These changes make me feel more readable. See the commit messages for more details.
Configuration menu - View commit details
-
Copy full SHA for a6cfdd8 - Browse repository at this point
Copy the full SHA a6cfdd8View commit details -
Rollup merge of rust-lang#74227 - erikdesjardins:layun, r=estebank
Remove an unwrap in layout computation A tiny improvement.
Configuration menu - View commit details
-
Copy full SHA for f87ef88 - Browse repository at this point
Copy the full SHA f87ef88View commit details -
Rollup merge of rust-lang#74239 - AdrianCX:master, r=cuviper
Update llvm-project to latest origin/rustc/10.0-2020-05-05 commit which includes LVI segfault fix when building fortanix/rust-sgx#267 And a few earlier commits.
Configuration menu - View commit details
-
Copy full SHA for 4a79b54 - Browse repository at this point
Copy the full SHA 4a79b54View commit details -
Rollup merge of rust-lang#74257 - alex:patch-1, r=joshtriplett
don't mark linux kernel module targets as a unix environment refs rust-lang#74247 r?@joshtriplett cc: @ehuss
Configuration menu - View commit details
-
Copy full SHA for 6332dd8 - Browse repository at this point
Copy the full SHA 6332dd8View commit details -
Rollup merge of rust-lang#74272 - davidtwco:issue-73626-multiline-mix…
…ed-comments, r=Mark-Simulacrum pprust: support multiline comments within lines Fixes rust-lang#73626. This PR adds support to `rustc_ast_pretty` for multiline comments that start and end within a line of source code. Fun fact: [the commit which added this assert](rust-lang@d12ea39) was from 2011! https:/rust-lang/rust/blob/d12ea3989649616437a7c1434f5c5a6438235eb7/src/comp/pretty/pprust.rs#L1146-L1150
Configuration menu - View commit details
-
Copy full SHA for ef5b047 - Browse repository at this point
Copy the full SHA ef5b047View commit details -
Rollup merge of rust-lang#74296 - Lynoure:rfind-doc-improvement, r=ha…
…nna-kruppe Clarify the description for rfind Changes the wording in rfind description to be clearer and the example code to illustrate the difference between find and rfind
Configuration menu - View commit details
-
Copy full SHA for afffe05 - Browse repository at this point
Copy the full SHA afffe05View commit details -
Rollup merge of rust-lang#74310 - nnethercote:use-ArrayVec-in-SparseB…
…itSet, r=eddyb Use `ArrayVec` in `SparseBitSet`. Instead of `SmallVec`, because the maximum size is known. r? @eddyb
Configuration menu - View commit details
-
Copy full SHA for 6261805 - Browse repository at this point
Copy the full SHA 6261805View commit details -
Rollup merge of rust-lang#74316 - yoshuawuyts:no-wake-type-hints, r=M…
…ark-Simulacrum Remove unnecessary type hints from Wake internals While working on rust-lang#74304 I noticed we were writing out the type signature twice in some internal `Wake` impl methods; this streamlines that. Thanks!
Configuration menu - View commit details
-
Copy full SHA for 1d72e72 - Browse repository at this point
Copy the full SHA 1d72e72View commit details -
Rollup merge of rust-lang#74324 - flip1995:clippyup, r=Manishearth
Update Clippy ~~I'm not sure, if we can/should land this before beta is branched.~~ (Nvm, beta is already branched) The last Clippy update was 3 weeks ago: rust-lang#73660 This includes, besides other minor things: - New lints - One lint deprecation - One lint was moved to pedantic - Some FP fixes - I think an ICE fix? cc @Mark-Simulacrum r? @Manishearth --- We probably should also think of some process when and how often we should sync Clippy to the rust repo, so that we don't end up with those huge updates. Maybe every 2 weeks? Or even every week? cc @rust-lang/clippy
Configuration menu - View commit details
-
Copy full SHA for 4c2d7ee - Browse repository at this point
Copy the full SHA 4c2d7eeView commit details