-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update from rust-lang/rust/master 2020-04-14 #11
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 19, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 7779a11 - Browse repository at this point
Copy the full SHA 7779a11View 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 #5694 - wangtheo:issue-5626, r=matthiaskrgr
#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 #5745 - montrivo:copy_on_clone, r=phansch
clone_on_copy - add machine applicability Fix #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 #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 #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 #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 #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 #73756 - Manishearth:rollup-aehswb2, r=Manishearth
Rollup of 13 pull requests Successful merges: - #72620 (Omit DW_AT_linkage_name when it is the same as DW_AT_name) - #72967 (Don't move cursor in search box when using arrows to navigate results) - #73102 (proc_macro: Stop flattening groups with dummy spans) - #73297 (Support configurable deny-warnings for all in-tree crates.) - #73507 (Cleanup MinGW LLVM linkage workaround) - #73588 (Fix handling of reserved registers for ARM inline asm) - #73597 (Record span of `const` kw in GenericParamKind) - #73629 (Make AssocOp Copy) - #73681 (Update Chalk to 0.14) - #73707 (Fix links in `SliceIndex` documentation) - #73719 (emitter: column width defaults to 140) - #73729 (disable collectionbenches for android) - #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 -
Configuration menu - View commit details
-
Copy full SHA for 98a3b07 - Browse repository at this point
Copy the full SHA 98a3b07View 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 -
Configuration menu - View commit details
-
Copy full SHA for 2e21af2 - Browse repository at this point
Copy the full SHA 2e21af2View 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
-
Clarify some parts by applying the suggestions from review
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
Configuration menu - View commit details
-
Copy full SHA for 614f773 - Browse repository at this point
Copy the full SHA 614f773View commit details -
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 #5751 - flip1995:rustup, r=Manishearth,flip1995
Rustup cc #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 #5750 - ebroto:blanket_clippy_restriction_lints, r=Mani…
…shearth,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 #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 #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 #5759 - mikerite:multiple_crate_versions_20200701, r=ma…
…tthiaskrgr 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 #5760 - phansch:deprecate-regex-macro, r=Manishearth
Deprecate regex_macro lint Closes #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 <david@davidtw.co>
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 #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 #5761 - ThibsG:TypeRepetitionThreshold, r=flip1995
Improvements for `type_repetition_in_bounds` lint Some improvements for `type_repetition_in_bounds`: - add a configurable threshold to trigger the lint (#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 (#4323) - don't lint for predicates generated in macros (#4326) Fixes #4380, Fixes #4323, Fixes #4326, Closes #3764 changelog: Fix multiple FPs in `type_repetition_in_bounds` and add a configuration option Note: the #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 #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 -
Configuration menu - View commit details
-
Copy full SHA for 310c97b - Browse repository at this point
Copy the full SHA 310c97bView 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 #5301 - JarredAllen:option_if_let_else, r=flip1995
Suggest `Option::map_or`(_else) for `if let Some { y } else { x }` Fixes #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 #73978 - Mark-Simulacrum:shrink-paramenv, r=nnethercote
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 #73870 - sexxi-goose:projection-ty, r=nikomatsakis
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 #74117 - Manishearth:rollup-ds7z0kx, r=Manishearth
Rollup of 14 pull requests Successful merges: - #70563 ([rustdoc] Page hash handling) - #73856 (Edit librustc_lexer top-level docs) - #73870 (typeck: adding type information to projection) - #73953 (Audit hidden/short code suggestions) - #73962 (libstd/net/tcp.rs: #![deny(unsafe_op_in_unsafe_fn)]) - #73969 (mir: mark mir construction temporaries as internal) - #73974 (Move A|Rc::as_ptr from feature(weak_into_raw) to feature(rc_as_ptr)) - #74067 (rustdoc: Restore underline text decoration on hover for FQN in header) - #74074 (Fix the return type of Windows' `OpenOptionsExt::security_qos_flags`.) - #74078 (Always resolve type@primitive as a primitive, not a module) - #74089 (Add rust-analyzer to the build manifest) - #74090 (Remove unused RUSTC_DEBUG_ASSERTIONS) - #74102 (Fix const prop ICE) - #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 00980b6 - Browse repository at this point
Copy the full SHA 00980b6View 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
-
rustdoc: Allow linking from private items to private types
Fixes #74134 After PR #72771 this would trigger an intra_doc_link_resolution_failure warning when rustdoc is invoked without --document-private-items. Links from private items to private types are however never actually generated in that case and thus shouldn't produce a warning. These links are in fact a very useful tool to document crate internals. Tests are added for all 4 combinations of public/private items and link targets. Test 1 is the case mentioned above and fails without this commit. Tests 2 - 4 passed before already but are added nonetheless to prevent regressions.
Configuration menu - View commit details
-
Copy full SHA for c8b16cd - Browse repository at this point
Copy the full SHA c8b16cdView commit details -
Auto merge of #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 #5771 - montrivo:bugfix/single-match-else, r=matthiaskrgr
single_match_else - single expr/stmt else block corner case One approach to fix #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 #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 #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 #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 -
test: rustdoc-ui: Add issue-74134, replacing test/rustdoc/issue-74134-*
As per the discussion in PR #74147, the 4 individual tests are replaced by a single one. The test is expanded to cover all 4 public/private cases, each with and without --document-private-items.
Configuration menu - View commit details
-
Copy full SHA for 689e360 - Browse repository at this point
Copy the full SHA 689e360View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9704859 - Browse repository at this point
Copy the full SHA 9704859View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8789525 - Browse repository at this point
Copy the full SHA 8789525View commit details -
Fix out of bounds access by checking length equality BEFORE accessing…
… by index. Fixes #5780
Configuration menu - View commit details
-
Copy full SHA for 1b3bc16 - Browse repository at this point
Copy the full SHA 1b3bc16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0979545 - Browse repository at this point
Copy the full SHA 0979545View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4728438 - Browse repository at this point
Copy the full SHA 4728438View commit details -
Rollup merge of #72920 - oli-obk:const_transmute, r=RalfJung
Stabilize `transmute` in constants and statics but not const fn cc #53605 (leaving issue open so we can add `transmute` to `const fn` later) Previous attempt: #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 8082fb9 - Browse repository at this point
Copy the full SHA 8082fb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dc3886 - Browse repository at this point
Copy the full SHA 7dc3886View 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 -
typeck: report placeholder type error w/out span
This commit fixes a regression introduced in #70369 which meant that an error was not being emitted for invalid placeholder types when there wasn't a span available. Signed-off-by: David Wood <david@davidtw.co>
Configuration menu - View commit details
-
Copy full SHA for 5afbc52 - Browse repository at this point
Copy the full SHA 5afbc52View commit details -
Configuration menu - View commit details
-
Copy full SHA for 879afd5 - Browse repository at this point
Copy the full SHA 879afd5View 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 <david@davidtw.co>
Configuration menu - View commit details
-
Copy full SHA for 083c2f6 - Browse repository at this point
Copy the full SHA 083c2f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5daedea - Browse repository at this point
Copy the full SHA 5daedeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for ffac887 - Browse repository at this point
Copy the full SHA ffac887View commit details -
Don't allow
DESTDIR
to influence LLVM buildsWhen running a command like `DESTDIR=foo x.py install` in a completely clean build directory, this will cause LLVM to be installed into `DESTDIR`, which then causes the build to fail later when it attempts to *use* those LLVM files.
Configuration menu - View commit details
-
Copy full SHA for 9741fbd - Browse repository at this point
Copy the full SHA 9741fbdView 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
-
Configuration menu - View commit details
-
Copy full SHA for 9a3a31a - Browse repository at this point
Copy the full SHA 9a3a31aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ff7e1a - Browse repository at this point
Copy the full SHA 5ff7e1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for eac8092 - Browse repository at this point
Copy the full SHA eac8092View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3ae4c7 - Browse repository at this point
Copy the full SHA e3ae4c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc2b37a - Browse repository at this point
Copy the full SHA bc2b37aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8df79fc - Browse repository at this point
Copy the full SHA 8df79fcView commit details -
Auto merge of #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 #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 #2040 (fixes #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 #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 #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 -
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 #5784 - matthiaskrgr:ice_5780, r=phansch
Fix out of bounds access by checking length equality BEFORE accessing by index. Fixes #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 #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 #5792 - flip1995:rollup-torc1we, r=flip1995
Rollup of 5 pull requests Successful merges: - #5443 (Some accuracy lints for floating point operations) - #5752 (Move range_minus_one to pedantic) - #5756 (unnecessary_sort_by: avoid linting if key borrows) - #5784 (Fix out of bounds access by checking length equality BEFORE accessing by index.) - #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 -
Rollup merge of #73354 - XAMPPRocky:relnotes-1.45.0, r=Mark-Simulacrum
Update RELEASES.md for 1.45.0 ### [Rendered](https://github.com/XAMPPRocky/rust/blob/relnotes-1.45.0/RELEASES.md) r? @Mark-Simulacrum cc @rust-lang/release
Configuration menu - View commit details
-
Copy full SHA for aa29e3d - Browse repository at this point
Copy the full SHA aa29e3dView commit details -
Rollup merge of #73852 - euclio:rustdoc-attr-newlines, r=GuillaumeGomez
rustdoc: insert newlines between attributes Fixes #73205.
Configuration menu - View commit details
-
Copy full SHA for eb7fdb2 - Browse repository at this point
Copy the full SHA eb7fdb2View commit details -
Rollup merge of #73867 - poliorcetics:union-keyword, r=joshtriplett
Configuration menu - View commit details
-
Copy full SHA for d9614db - Browse repository at this point
Copy the full SHA d9614dbView commit details -
Rollup merge of #74046 - ehuss:deny-warnings-caching, r=Mark-Simulacrum
Fix caching issue when building tools. This fixes a problem with tool builds not being cached properly. #73297 changed it so that Clippy will participate in the "deny warnings" setting. Unfortunately this causes a problem because Clippy shares the build directory with other tools which do not participate in "deny warnings". Because Cargo does not independently cache artifacts based on different RUSTFLAGS settings, it causes all the shared dependencies to get rebuilt if Clippy ever gets built. The solution here is to stop using RUSTFLAGS, and just sneak the settings in through the rustc wrapper. Cargo won't know about the different settings, so it will not bust the cache. This should be safe since lint settings on dependencies are ignored. This is how things used to work in the past before #64316. Alternate solutions: * Treat Clippy as a "submodule" and don't enforce warnings on it. This was the behavior before #73297. The consequence is that if a warning sneaks into clippy, that the clippy maintainers will need to fix it when they sync clippy back to the clippy repo. * Just deny warnings on all tools (removing the in-tree/submodule distinction). This is tempting, but with some issues (cc #52336): * Adding or changing warnings in rustc can be difficult to land because tools have to be updated if they trip the warning. In practice, this isn't too bad. Cargo (and rustfmt) already runs with `deny(warnings)`, so this has been the de-facto standard already (although they do not use the extra lints like `unused_lifetimes`). * Teach Cargo to add flags to the workspace members, but not dependencies. * Teach Cargo to add flags without fingerprinting them? * Teach Cargo to independently cache different RUSTFLAGS artifacts (this was [reverted](rust-lang/cargo#7417) due to complications). This would also unnecessarily rebuild dependencies, but would avoid cache thrashing. * Teach Cargo about lint settings. Closes #74016
Configuration menu - View commit details
-
Copy full SHA for e553243 - Browse repository at this point
Copy the full SHA e553243View commit details -
Rollup merge of #74123 - GuillaumeGomez:cleanup-e0718, r=pickfire
clean up E0718 explanation r? @Dylan-DPC
Configuration menu - View commit details
-
Copy full SHA for 549aa03 - Browse repository at this point
Copy the full SHA 549aa03View commit details -
Rollup merge of #74147 - dennis-hamester:fix/issue-74134, r=jyn514
rustdoc: Allow linking from private items to private types Fixes #74134 After PR #72771 this would trigger an intra_doc_link_resolution_failure warning when rustdoc is invoked without --document-private-items. Links from private items to private types are however never actually generated in that case and thus shouldn't produce a warning. These links are in fact a very useful tool to document crate internals. Tests are added for all 4 combinations of public/private items and link targets. Test 1 is the case mentioned above and fails without this commit. Tests 2 - 4 passed before already but are added nonetheless to prevent regressions.
Configuration menu - View commit details
-
Copy full SHA for e4a9b36 - Browse repository at this point
Copy the full SHA e4a9b36View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa4ada1 - Browse repository at this point
Copy the full SHA fa4ada1View commit details -
Rollup merge of #74286 - PankajChaudhary5:E0688, r=GuillaumeGomez
Added detailed error code explanation for issue E0688 in Rust compiler. Added proper error explanation for issue E0688 in the Rust compiler. Error Code E0688 Sub Part of Issue #61137 r? @GuillaumeGomez
Configuration menu - View commit details
-
Copy full SHA for 9a1df31 - Browse repository at this point
Copy the full SHA 9a1df31View commit details -
Auto merge of #74313 - Manishearth:rollup-b55rn6t, r=Manishearth
Rollup of 8 pull requests Successful merges: - #73354 (Update RELEASES.md for 1.45.0) - #73852 (rustdoc: insert newlines between attributes) - #73867 (Document the union keyword) - #74046 (Fix caching issue when building tools.) - #74123 (clean up E0718 explanation) - #74147 (rustdoc: Allow linking from private items to private types) - #74285 (#71669: add ui, codegen tests for volatile + nearby int intrinsics) - #74286 (Added detailed error code explanation for issue E0688 in Rust compiler.) Failed merges: r? @ghost
Configuration menu - View commit details
-
Copy full SHA for 4a689da - Browse repository at this point
Copy the full SHA 4a689daView commit details -
Auto merge of #73490 - CAD97:range-unchecked-stepping, r=Amanieu
Use step_unchecked more liberally in range iter impls Without these `_unchecked`, these operations on iterators of `char` fail to optimize out the unreachable panicking condition on overflow. cc @cuviper rayon-rs/rayon#771 where this was discovered.
Configuration menu - View commit details
-
Copy full SHA for c724b67 - Browse repository at this point
Copy the full SHA c724b67View commit details -
Auto merge of #5773 - giraffate:repeat_once, r=flip1995
Add a lint for `.repeat(1)` changelog: New lint `repeat_once` fix #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 #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 #71237 - Cldfire:rustdoc-ayu-theme, r=GuilliaumeGomez
Add Ayu theme to rustdoc This is a port of a theme I maintain (https://github.com/Cldfire/ayu-rs) to the native rustdoc theme system. [Ayu](https://github.com/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://github.com/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 03f565c - Browse repository at this point
Copy the full SHA 03f565cView commit details -
Rollup merge of #73720 - GuillaumeGomez:cleanup-e0704, r=Dylan-DPC
Clean up E0704 error explanation r? @Dylan-DPC
Configuration menu - View commit details
-
Copy full SHA for 5e61827 - Browse repository at this point
Copy the full SHA 5e61827View commit details -
Rollup merge of #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 905c4e0 - Browse repository at this point
Copy the full SHA 905c4e0View commit details -
Rollup merge of #73965 - davidtwco:issue-73886-non-primitive-slice-ca…
Configuration menu - View commit details
-
Copy full SHA for 6a4faa2 - Browse repository at this point
Copy the full SHA 6a4faa2View commit details -
Rollup merge of #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 #71146 tracking issue and rename the feature get to `slice_ptr_methods` or so. Cc @SimonSapin Fixes #60639
Configuration menu - View commit details
-
Copy full SHA for 79894df - Browse repository at this point
Copy the full SHA 79894dfView commit details -
Rollup merge of #74173 - estebank:struct-pat-as-enum, r=petrochenkov
Detect tuple struct incorrectly used as struct pat Subpart of #74005. r? @petrochenkov
Configuration menu - View commit details
-
Copy full SHA for b9a0f58 - Browse repository at this point
Copy the full SHA b9a0f58View commit details -
Rollup merge of #74220 - lzutao:windows-path-com, r=LukasKalbertodt
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 063bbc4 - Browse repository at this point
Copy the full SHA 063bbc4View commit details -
Rollup merge of #74227 - erikdesjardins:layun, r=estebank
Remove an unwrap in layout computation A tiny improvement.
Configuration menu - View commit details
-
Copy full SHA for 98ceb90 - Browse repository at this point
Copy the full SHA 98ceb90View commit details -
Rollup merge of #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 aa9dc70 - Browse repository at this point
Copy the full SHA aa9dc70View commit details -
Rollup merge of #74257 - alex:patch-1, r=joshtriplett
don't mark linux kernel module targets as a unix environment refs #74247 r?@joshtriplett cc: @ehuss
Configuration menu - View commit details
-
Copy full SHA for 6513578 - Browse repository at this point
Copy the full SHA 6513578View commit details -
Rollup merge of #74270 - davidtwco:issue-74086-more-placeholder-type-…
Configuration menu - View commit details
-
Copy full SHA for 1114f22 - Browse repository at this point
Copy the full SHA 1114f22View commit details -
Rollup merge of #74296 - Lynoure:rfind-doc-improvement, r=hanna-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 e8703e8 - Browse repository at this point
Copy the full SHA e8703e8View commit details -
Rollup merge of #74310 - nnethercote:use-ArrayVec-in-SparseBitSet, 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 99c0b97 - Browse repository at this point
Copy the full SHA 99c0b97View commit details -
Rollup merge of #74316 - yoshuawuyts:no-wake-type-hints, r=Mark-Simul…
…acrum Remove unnecessary type hints from Wake internals While working on #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 2fb307a - Browse repository at this point
Copy the full SHA 2fb307aView commit details -
Rollup merge of #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: #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 5414eae - Browse repository at this point
Copy the full SHA 5414eaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c9e67a - Browse repository at this point
Copy the full SHA 4c9e67aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba661d8 - Browse repository at this point
Copy the full SHA ba661d8View commit details -
typeck: use
item_name
in cross-crate packed diagThis commit replaces the use of `expect_local` and `hir().get` to fetch the identifier for a ADT with `item_name` - which works across crates. Signed-off-by: David Wood <david@davidtw.co>
Configuration menu - View commit details
-
Copy full SHA for d9485be - Browse repository at this point
Copy the full SHA d9485beView commit details -
Auto merge of #74330 - Manishearth:rollup-mrc09pb, r=Manishearth
Rollup of 15 pull requests Successful merges: - #71237 (Add Ayu theme to rustdoc) - #73720 (Clean up E0704 error explanation) - #73866 (Obviate #[allow(improper_ctypes_definitions)]) - #73965 (typeck: check for infer before type impls trait) - #73986 (add (unchecked) indexing methods to raw (and NonNull) slices) - #74173 (Detect tuple struct incorrectly used as struct pat) - #74220 (Refactor Windows `parse_prefix`) - #74227 (Remove an unwrap in layout computation) - #74239 (Update llvm-project to latest origin/rustc/10.0-2020-05-05 commit ) - #74257 (don't mark linux kernel module targets as a unix environment) - #74270 (typeck: report placeholder type error w/out span) - #74296 (Clarify the description for rfind) - #74310 (Use `ArrayVec` in `SparseBitSet`.) - #74316 (Remove unnecessary type hints from Wake internals) - #74324 (Update Clippy) Failed merges: r? @ghost
Configuration menu - View commit details
-
Copy full SHA for 2002eba - Browse repository at this point
Copy the full SHA 2002ebaView commit details -
Suggest struct pat on incorrect unit or tuple pat
When encountering a unit or tuple pattern for a struct-like item, suggest using the correct pattern. Use `insert_field_names_local` when evaluating variants and store field names even when the list is empty in order to produce accurate structured suggestions.
Configuration menu - View commit details
-
Copy full SHA for 0429820 - Browse repository at this point
Copy the full SHA 0429820View commit details -
Configuration menu - View commit details
-
Copy full SHA for c88409d - Browse repository at this point
Copy the full SHA c88409dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a15bda4 - Browse repository at this point
Copy the full SHA a15bda4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28e6f1f - Browse repository at this point
Copy the full SHA 28e6f1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b7db6bb - Browse repository at this point
Copy the full SHA b7db6bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for d989796 - Browse repository at this point
Copy the full SHA d989796View commit details -
lint: use
transparent_newtype_field
to avoid ICEThis commit re-uses the `transparent_newtype_field` function instead of manually calling `is_zst` on normalized fields to determine which field in a transparent type is the non-zero-sized field, thus avoiding an ICE. Signed-off-by: David Wood <david@davidtw.co>
Configuration menu - View commit details
-
Copy full SHA for cccc310 - Browse repository at this point
Copy the full SHA cccc310View commit details -
Configuration menu - View commit details
-
Copy full SHA for c38b127 - Browse repository at this point
Copy the full SHA c38b127View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff75395 - Browse repository at this point
Copy the full SHA ff75395View commit details -
Rollup merge of #73759 - GuillaumeGomez:stdin-examples, r=Dylan-DPC
Add missing Stdin and StdinLock examples r? @Dylan-DPC
Configuration menu - View commit details
-
Copy full SHA for 353df59 - Browse repository at this point
Copy the full SHA 353df59View commit details -
Rollup merge of #74211 - estebank:struct-pat-as-unit, r=petrochenkov
Structured suggestion when not using struct pattern r? @petrochenkov
Configuration menu - View commit details
-
Copy full SHA for be5c7ab - Browse repository at this point
Copy the full SHA be5c7abView commit details -
Rollup merge of #74228 - estebank:unsized-param, r=davidtwco
Provide structured suggestion on unsized fields and fn params * Suggest borrowing or boxing unsized fields * Suggest borrowing fn parameters * Remove some verbosity of unsized errors * Remove `on_unimplemented` note from `trait Sized` Fix #23286, fix #28653. r? @davidtwco
Configuration menu - View commit details
-
Copy full SHA for a364c0a - Browse repository at this point
Copy the full SHA a364c0aView commit details -
Rollup merge of #74252 - shepmaster:bootstrap-rust-destdir, r=Mark-Si…
…mulacrum Don't allow `DESTDIR` to influence LLVM builds When running a command like `DESTDIR=foo x.py install` in a completely clean build directory, this will cause LLVM to be installed into `DESTDIR`, which then causes the build to fail later when it attempts to *use* those LLVM files.
Configuration menu - View commit details
-
Copy full SHA for 1e74f28 - Browse repository at this point
Copy the full SHA 1e74f28View commit details -
Rollup merge of #74263 - RalfJung:thread-local, r=Mark-Simulacrum
Slight reorganization of sys/(fast_)thread_local I was long confused by the `thread_local` and `fast_thread_local` modules in the `sys(_common)` part of libstd. The names make it *sound* like `fast_thread_local` is just a faster version of `thread_local`, but really these are totally different APIs: one provides thread-local "keys", which are non-addressable pointer-sized pieces of local storage with an associated destructor; the other (the "fast" one) provides just a destructor. So I propose we rename `fast_thread_local` to `thread_local_dtor`, and `thread_local` to `thread_local_key`. That's what this PR does.
Configuration menu - View commit details
-
Copy full SHA for fadd91c - Browse repository at this point
Copy the full SHA fadd91cView commit details -
Rollup merge of #74271 - lzutao:cmdbytes, r=LukasKalbertodt
process_unix: prefer i32::*_be_bytes over manually shifting bytes This PR makes it more clear about the intend of the code.
Configuration menu - View commit details
-
Copy full SHA for 7b1247c - Browse repository at this point
Copy the full SHA 7b1247cView commit details -
Rollup merge of #74272 - davidtwco:issue-73626-multiline-mixed-commen…
…ts, r=Mark-Simulacrum pprust: support multiline comments within lines Fixes #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](d12ea39) was from 2011! https://github.com/rust-lang/rust/blob/d12ea3989649616437a7c1434f5c5a6438235eb7/src/comp/pretty/pprust.rs#L1146-L1150
Configuration menu - View commit details
-
Copy full SHA for 92e90f9 - Browse repository at this point
Copy the full SHA 92e90f9View commit details -
Rollup merge of #74332 - ehuss:update-cargo, r=ehuss
Update cargo 4 commits in 4f74d9b2a771c58b7ef4906b2668afd075bc8081..43cf77395cad5b79887b20b7cf19d418bbd703a9 2020-07-08 17:13:00 +0000 to 2020-07-13 17:35:42 +0000 - fix: add space to comments (rust-lang/cargo#8476) - Allow configuring unstable flags via config file (rust-lang/cargo#8393) - Add support for rustc's `-Z terminal-width`. (rust-lang/cargo#8427) - Avoid colliding with older Cargo fingerprint changes (rust-lang/cargo#8473)
Configuration menu - View commit details
-
Copy full SHA for 1cd8c5e - Browse repository at this point
Copy the full SHA 1cd8c5eView commit details -
Rollup merge of #74334 - jyn514:config-toml-docs, r=spastorino
bootstrap: Improve wording on docs for `verbose-tests` From rust-lang/rustc-dev-guide#795 (comment) r? @spastorino
Configuration menu - View commit details
-
Copy full SHA for aedb7c3 - Browse repository at this point
Copy the full SHA aedb7c3View commit details -
Rollup merge of #74336 - davidtwco:issue-73112-cross-crate-packed-typ…
…e-diagnostic, r=estebank typeck: use `item_name` in cross-crate packed diag Fixes #73112. This PR replaces the use of `expect_local` and `hir().get` to fetch the identifier for a ADT with `item_name` - which works across crates.
Configuration menu - View commit details
-
Copy full SHA for c4fcf5a - Browse repository at this point
Copy the full SHA c4fcf5aView commit details -
Rollup merge of #74340 - davidtwco:issue-73747-improper-ctypes-defns-…
…is-zst-with-params, r=pnkfelix lint: use `transparent_newtype_field` to avoid ICE Fixes #73747. This PR re-uses the `transparent_newtype_field` function instead of manually calling `is_zst` on normalized fields to determine which field in a transparent type is the non-zero-sized field, thus avoiding an ICE.
Configuration menu - View commit details
-
Copy full SHA for dbe7ed3 - Browse repository at this point
Copy the full SHA dbe7ed3View commit details -
Auto merge of #74342 - Manishearth:rollup-l63pesj, r=Manishearth
Rollup of 11 pull requests Successful merges: - #73759 (Add missing Stdin and StdinLock examples) - #74211 (Structured suggestion when not using struct pattern) - #74228 (Provide structured suggestion on unsized fields and fn params) - #74252 (Don't allow `DESTDIR` to influence LLVM builds) - #74263 (Slight reorganization of sys/(fast_)thread_local) - #74271 (process_unix: prefer i32::*_be_bytes over manually shifting bytes) - #74272 (pprust: support multiline comments within lines) - #74332 (Update cargo) - #74334 (bootstrap: Improve wording on docs for `verbose-tests`) - #74336 (typeck: use `item_name` in cross-crate packed diag) - #74340 (lint: use `transparent_newtype_field` to avoid ICE) Failed merges: r? @ghost
Configuration menu - View commit details
-
Copy full SHA for 23744c8 - Browse repository at this point
Copy the full SHA 23744c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 026089b - Browse repository at this point
Copy the full SHA 026089bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e284f5d - Browse repository at this point
Copy the full SHA e284f5dView commit details -
Add and use more static symbols.
Note that the output of `unpretty-debug.stdout` has changed. In that test the hash values are normalized from a symbol numbers to small numbers like "0#0" and "0#1". The increase in the number of static symbols must have caused the original numbers to contain more digits, resulting in different pretty-printing prior to normalization.
Configuration menu - View commit details
-
Copy full SHA for f04e866 - Browse repository at this point
Copy the full SHA f04e866View commit details -
Remove lots of
Symbol::as_str()
calls.In various ways, such as changing functions to take a `Symbol` instead of a `&str`.
Configuration menu - View commit details
-
Copy full SHA for 5930081 - Browse repository at this point
Copy the full SHA 5930081View commit details
Commits on Jul 15, 2020
-
Auto merge of #74175 - nnethercote:more-static-symbols, r=oli-obk
More static symbols These commits add some more static symbols and convert lots of places to use them. r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for 567ad74 - Browse repository at this point
Copy the full SHA 567ad74View commit details