summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2022-02-22Move `return_self_not_must_use` to `pedantic`xFrednet-6/+6
2022-02-21Soft-disable incremental compilationMark Rousskov-1/+26
This disables incremental compilation by default and adds a snippet to the compiler release notes explaining the rationale and encouraging testing.
2022-02-12Adjust clippy tests to account for unreachable! changesMark Rousskov-6/+3
2022-02-09[beta] Update cargoEric Huss-0/+0
Update includes: * https://github.com/rust-lang/cargo/pull/10377
2022-01-27Handle implicit named arguments in `useless_format`Jason Newcomb-3/+42
2022-01-25[beta] Update cargoEric Huss-0/+0
2022-01-20fix(rustfmt): resolve generated file formatting issueCaleb Cartwright-5/+25
2022-01-17[beta] backport cargoWeihang Lo-0/+0
2022-01-13bump rlsPietro Albini-0/+0
2022-01-11fix unused warnings in rustfmtPietro Albini-5/+4
2022-01-06cg: use thorin instead of llvm-dwpDavid Wood-0/+2
`thorin` is a Rust implementation of a DWARF packaging utility that supports reading DWARF objects from archive files (i.e. rlibs) and therefore is better suited for integration into rustc. Signed-off-by: David Wood <david.wood@huawei.com>
2022-01-05Auto merge of #92587 - matthiaskrgr:rollup-qnwa8qx, r=matthiaskrgrbors-16/+16
Rollup of 7 pull requests Successful merges: - #92092 (Drop guards in slice sorting derive src pointers from &mut T, which is invalidated by interior mutation in comparison) - #92388 (Fix a minor mistake in `String::try_reserve_exact` examples) - #92442 (Add negative `impl` for `Ord`, `PartialOrd` on `LocalDefId`) - #92483 (Stabilize `result_cloned` and `result_copied`) - #92574 (Add RISC-V detection macro and more architecture instructions) - #92575 (ast: Always keep a `NodeId` in `ast::Crate`) - #92583 (:arrow_up: rust-analyzer) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-01-05:arrow_up: rust-analyzerLaurențiu Nicola-16/+16
2022-01-05update MiriRalf Jung-8/+8
2022-01-05Auto merge of #92567 - ehuss:update-cargo, r=ehussbors-0/+0
Update cargo 10 commits in fcef61230c3b6213b6b0d233a36ba4ebd1649ec3..358e79fe56fe374649275ca7aebaafd57ade0e8d 2021-12-17 02:30:38 +0000 to 2022-01-04 18:39:45 +0000 - Make rmeta_required no longer depend on whether timing is enabled (rust-lang/cargo#10254) - The first version of pull request template (rust-lang/cargo#10218) - Stabilize the `strip` profile option, now that rustc has stable `-C strip` (rust-lang/cargo#10088) - Update docs for windows ssh-agent. (rust-lang/cargo#10248) - Fix typo: substract -&gt; subtract (rust-lang/cargo#10244) - timings: Fix tick mark alignment (rust-lang/cargo#10239) - Remove unused lifetimes (rust-lang/cargo#10238) - Make levenshtein distance case insensitive. (rust-lang/cargo#10224) - [docs] Adds basic CI yaml for GitHub Actions (rust-lang/cargo#10212) - Add function for parsing already-read manifest (rust-lang/cargo#10209)
2022-01-04Update cargoEric Huss-0/+0
2022-01-04Rollup merge of #91907 - lcnr:const-arg-infer, r=BoxyUwUMatthias Krüger-20/+50
Allow `_` as the length of array types and repeat expressions r? `@BoxyUwU` cc `@varkor`
2022-01-03Rollup merge of #90102 - nbdd0121:box3, r=jonas-schievinkMatthias Krüger-1/+0
Remove `NullOp::Box` Follow up of #89030 and MCP rust-lang/compiler-team#460. ~1 month later nothing seems to be broken, apart from a small regression that #89332 (1aac85bb716c09304b313d69d30d74fe7e8e1a8e) shows could be regained by remvoing the diverging path, so it shall be safe to continue and remove `NullOp::Box` completely. r? `@jonas-schievink` `@rustbot` label T-compiler
2021-12-31Make tidy check for magic numbers that spell thingsJosh Triplett-7/+22
Remove existing problematic cases.
2021-12-31Auto merge of #92252 - GuillaumeGomez:update-pulldown, r=camelid,xFrednetbors-5/+5
Update pulldown-cmark version to 0.9 Fixes https://github.com/rust-lang/rust/issues/92206. r? `@camelid`
2021-12-31Auto merge of #92437 - flip1995:clippyup, r=Manishearthbors-439/+1493
Update Clippy r? `@Manishearth`
2021-12-30Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyupflip1995-439/+1493
2021-12-29Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into ↵Caleb Cartwright-410/+710
sync-rustfmt-subtree
2021-12-29Auto merge of #92309 - ehuss:remove-check_lines, r=Mark-Simulacrumbors-11/+0
compiletest: Remove some vestigial code The `check_lines` header is no longer parsed as a header, but instead inside the debuginfo tests. I believe this was changed in #13726.
2021-12-29Rollup merge of #92351 - TmLev:master, r=GuillaumeGomezMatthias Krüger-2/+2
Add long error explanation for E0227 Part of the #61137.
2021-12-28Update pulldown-cmark version in clippyGuillaume Gomez-5/+5
2021-12-28docs(error-codes): Add long error explanation for E0227TmLev-2/+2
2021-12-28:arrow_up: rust-analyzerLaurențiu Nicola-16/+16
2021-12-26compiletest: Remove some vestigial codeEric Huss-11/+0
2021-12-25Auto merge of #92247 - lnicola:rust-analyzer-2021-12-24, r=lnicolabors-21/+16
:arrow_up: rust-analyzer r? `@ghost`
2021-12-24update MiriRalf Jung-7/+9
2021-12-24:arrow_up: rust-analyzerLaurențiu Nicola-21/+16
2021-12-23fix clippylcnr-20/+50
2021-12-23Auto merge of #92167 - pierwill:chalk-update, r=jackh726bors-2/+1
Update chalk to 0.75.0 - Compute flags in `intern_ty` - Remove `tracing-serde` from `PERMITTED_DEPENDENCIES` - Bump `tracing-tree` to 0.2.0 - Bump `tracing-subscriber` to 0.3.3
2021-12-22Upgrade `tracing-subscriber`pierwill-1/+1
2021-12-22Bless clippy test.Mara Bos-1/+1
2021-12-22Update chalk to 0.75.0pierwill-1/+0
- Compute flags in `intern_ty` - Remove tracing-serde from PERMITTED_DEPENDENCIES - Disable `tracing-full` feature in `chalk-solve` - Bump tracing-tree to 0.2.0
2021-12-20update MiriRalf Jung-8/+6
2021-12-19Auto merge of #91957 - nnethercote:rm-SymbolStr, r=oli-obkbors-92/+96
Remove `SymbolStr` This was originally proposed in https://github.com/rust-lang/rust/pull/74554#discussion_r466203544. As well as removing the icky `SymbolStr` type, it allows the removal of a lot of `&` and `*` occurrences. Best reviewed one commit at a time. r? `@oli-obk`
2021-12-18Rollup merge of #92030 - rukai:stdlib2021, r=m-ou-seMatthias Krüger-2/+4
Update stdlib to the 2021 edition progress towards https://github.com/rust-lang/rust/issues/88638 I couldnt find a way to run the 2018 style panic tests against 2018 so I just deleted them, maybe theres a way to do it that I missed though?
2021-12-18Rollup merge of #91909 - lnicola:rust-analyzer-2021-12-14, r=lnicolaMatthias Krüger-17/+21
:arrow_up: rust-analyzer r? ```@ghost```
2021-12-17Auto merge of #89841 - cormacrelf:let-else-typed, r=nagisabors-31/+56
Implement let-else type annotations natively Tracking issue: #87335 Fixes #89688, fixes #89807, edit: fixes #89960 as well As explained in https://github.com/rust-lang/rust/issues/89688#issuecomment-940405082, the previous desugaring moved the let-else scrutinee into a dummy variable, which meant if you wanted to refer to it again in the else block, it had moved. This introduces a new hir type, ~~`hir::LetExpr`~~ `hir::Let`, which takes over all the fields of `hir::ExprKind::Let(...)` and adds an optional type annotation. The `hir::Let` is then treated like a `hir::Local` when type checking a function body, specifically: * `GatherLocalsVisitor` overrides a new `Visitor::visit_let_expr` and does pretty much exactly what it does for `visit_local`, assigning a local type to the `hir::Let` ~~(they could be deduplicated but they are right next to each other, so at least we know they're the same)~~ * It reuses the code in `check_decl_local` to typecheck the `hir::Let`, simply returning 'bool' for the expression type after doing that. * ~~`FnCtxt::check_expr_let` passes this local type in to `demand_scrutinee_type`, and then imitates check_decl_local's pattern checking~~ * ~~`demand_scrutinee_type` (the blindest change for me, please give this extra scrutiny) uses this local type instead of of creating a new one~~ * ~~Just realised the `check_expr_with_needs` was passing NoExpectation further down, need to pass the type there too. And apparently this Expectation API already exists.~~ Some other misc notes: * ~~Is the clippy code supposed to be autoformatted? I tried not to give huge diffs but maybe some rustfmt changes simply haven't hit it yet.~~ * in `rustc_ast_lowering/src/block.rs`, I noticed some existing `self.alias_attrs()` calls in `LoweringContext::lower_stmts` seem to be copying attributes from the lowered locals/etc to the statements. Is that right? I'm new at this, I don't know.
2021-12-17Auto merge of #92036 - flip1995:clippyup, r=Manishearthbors-4446/+2856
Update Clippy Only one day delayed! :sweat_smile: r? `@Manishearth`
2021-12-18Update stdlib to the 2021 editionLucas Kent-2/+4
2021-12-17Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyupflip1995-4446/+2856
2021-12-16Update cargoEric Huss-0/+0
2021-12-16Auto merge of #89836 - pierwill:fix-85142-crate-hash, r=wesleywiserbors-0/+66
Include rustc version in `rustc_span::StableCrateId` `rustc_span::def_id::StableCrateId` is a hash of various data about a crate during compilation. This PR includes the version of `rustc` in the input when computing this hash. From a cursory reading of [RFC 2603](https://rust-lang.github.io/rfcs/2603-rust-symbol-name-mangling-v0.html), this appears to be acceptable within that design. In order to pass the `mir-opt` and `ui` test suites, this adds new [normalization for hashes and symbol names in `compiletest`](https://github.com/rust-lang/rust/pull/89836/files#diff-03a0567fa80ca04ed5a55f9ac5c711b4f84659be2d0ac4a984196d581c04f76b). These are enabled by default, but we might prefer it to be configurable. In the UI tests, I had to truncate a significant amount of error annotations in v0 symbols (and maybe some legacy) in order to get the normalization to work correctly. (See https://github.com/rust-lang/rust/issues/90116.) Closes #85142.
2021-12-15Rollup merge of #91584 - GuillaumeGomez:improve-rustdoc-gui-tester-code, r=jshaMatthias Krüger-5/+5
Improve code for rustdoc-gui tester Following advice given in #91391. It nicely improves the code readability. :) r? `@jsha`
2021-12-15Rollup merge of #90521 - jhpratt:stabilize-destructuring_assignment, ↵Matthias Krüger-13/+2
r=jackh726,pnkfelix Stabilize `destructuring_assignment` Closes #71126 - [Stabilization report](https://github.com/rust-lang/rust/issues/71126#issuecomment-941148058) - [Completed FCP](https://github.com/rust-lang/rust/issues/71126#issuecomment-954914819) `@rustbot` label +F-destructuring-assignment +T-lang Also needs +relnotes but I don't have permission to add that tag.
2021-12-15Remove unnecessary sigils around `Ident::as_str()` calls.Nicholas Nethercote-27/+27