about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2021-07-25Auto merge of #87390 - notriddle:notriddle/rustdoc-headers-patch, ↵bors-0/+5
r=GuillaumeGomez Rustdoc accessibility: use real headers for doc items Part of #87059 Partially reverts #84703 Preview at: https://notriddle.com/notriddle-rustdoc-test/real-headers/std/index.html
2021-07-25Rustdoc accessibility: use real headers for doc itemsbors-0/+5
Part of #87059 Partially reverts #84703 Preview at: https://notriddle.com/notriddle-rustdoc-test/real-headers/std/index.html
2021-07-25ignore comments in tidy-filelengthibraheemdev-1/+4
2021-07-25Auto merge of #83723 - cjgillot:ownernode, r=petrochenkovbors-1/+1
Store all HIR owners in the same container This replaces the previous storage in a BTreeMap for each of Item/ImplItem/TraitItem/ForeignItem. This should allow for a more compact storage. Based on https://github.com/rust-lang/rust/pull/83114
2021-07-25Introduce OwnerNode::Crate.Camille GILLOT-1/+1
2021-07-25Add inferred args to typeckkadmin-12/+75
2021-07-25Add generic arg inferkadmin-1/+10
2021-07-23Auto merge of #87413 - JohnTitor:rollup-dht22jk, r=JohnTitorbors-2/+2
Rollup of 14 pull requests Successful merges: - #86410 (VecMap::get_value_matching should return just one element) - #86790 (Document iteration order of `retain` functions) - #87171 (Remove Option from BufWriter) - #87175 (Stabilize `into_parts()` and `into_error()`) - #87185 (Fix panics on Windows when the build was cancelled) - #87191 (Package LLVM libs for the target rather than the build host) - #87255 (better support for running libcore tests with Miri) - #87266 (Add testcase for 87076) - #87283 (Add `--codegen-backends=foo,bar` configure flag) - #87322 (fix: clarify suggestion that `&T` must refer to `T: Sync` for `&T: Send`) - #87358 (Fix `--dry-run` when download-ci-llvm is set) - #87380 (Don't default to `submodules = true` unless the rust repo has a .git directory) - #87398 (Add test for fonts used for module items) - #87412 (Add missing article) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-07-24Rollup merge of #87322 - chazkiker2:fix/suggestion-ref-sync-send, r=estebankYuki Okushi-2/+2
fix: clarify suggestion that `&T` must refer to `T: Sync` for `&T: Send` ### Description - [x] fix #86507 - [x] add UI test for relevant code from issue - [x] change `rustc_trait_selection/src/traits/error_reporting/suggestions.rs` to include a more clear suggestion when `&T` fails to satisfy `Send` bounds due to the fact that `T` fails to implement `Sync` - [x] update UI test in Clippy: `src/tools/tests/ui/future_not_send.stderr`
2021-07-23update clippy ui test 'future_not_send.stderr' to matchchaz-kiker-2/+2
the new diagnostic messages
2021-07-23Auto merge of #87345 - Xanewok:update-rls, r=Mark-Simulacrumbors-16/+18
Unbreak and update RLS Closes #86905 Closes #86606 Closes #86607 This also prunes old mio 0.6 thanks to Tokio 1.0 bump, so this should now build on aarch64 Windows. r? `@Mark-Simulacrum`
2021-07-23Add missing winapi feature to workspace hackMark Rousskov-1/+9
2021-07-22Update cargoEric Huss-0/+0
2021-07-21Fix formatting in tidy exception listIgor Matuszewski-11/+11
2021-07-21Clean up now unused deps from the exceptions listIgor Matuszewski-8/+2
2021-07-21Rollup merge of #87326 - ehuss:update-cargo, r=ehussEric Huss-0/+0
Update cargo 6 commits in 27277d966b3cfa454d6dea7f724cb961c036251c..4e143fd131e0c16cefd008456e974236ca54e62e 2021-07-16 00:50:39 +0000 to 2021-07-20 21:55:45 +0000 - Named profile updates (rust-lang/cargo#9685) - Inform build scripts of rustc compiler context (rust-lang/cargo#9601) - Factor version preferences into a struct (rust-lang/cargo#9703) - docs: Fix sentence & update link for GitLab CI docs (rust-lang/cargo#9704) - Deduplicate compiler diagnostics. (rust-lang/cargo#9675) - Re-enable future-incompatible tests. (rust-lang/cargo#9698)
2021-07-21Rollup merge of #87278 - lnicola:rust-analyzer-2021-07-19, r=lnicolaEric Huss-16/+15
:arrow_up: rust-analyzer
2021-07-21Update RLSIgor Matuszewski-0/+0
2021-07-20Update cargoEric Huss-0/+0
2021-07-20Auto merge of #87310 - spastorino:update_miri, r=RalfJungbors-12/+8
Update MIRI Fixes #87306 r? `@RalfJung`
2021-07-20Update MIRISantiago Pastorino-12/+8
2021-07-19:arrow_up: rust-analyzerLaurențiu Nicola-16/+15
2021-07-19Merge commit '4c41a222ca5d1325fb4b6709395bd06e766cc042' into clippyupflip1995-298/+468
2021-07-19Auto merge of #86848 - notriddle:notriddle/drop-dyn, r=varkorbors-1/+1
feat(rustc_lint): add `dyn_drop` Based on the conversation in #86747. Explanation ----------- A trait object bound of the form `dyn Drop` is most likely misleading and not what the programmer intended. `Drop` bounds do not actually indicate whether a type can be trivially dropped or not, because a composite type containing `Drop` types does not necessarily implement `Drop` itself. Naïvely, one might be tempted to write a deferred drop system, to pull cleaning up memory out of a latency-sensitive code path, using `dyn Drop` trait objects. However, this breaks down e.g. when `T` is `String`, which does not implement `Drop`, but should probably be accepted. To write a trait object bound that accepts anything, use a placeholder trait with a blanket implementation. ```rust trait Placeholder {} impl<T> Placeholder for T {} fn foo(_x: Box<dyn Placeholder>) {} ```
2021-07-18fix(clippy): add missing allow(dyn_drop)Michael Howell-1/+1
2021-07-18update MiriRalf Jung-9/+12
2021-07-17Auto merge of #86676 - cjgillot:localexpn, r=petrochenkovbors-2/+2
Make expansions stable for incr. comp. This PR aims to make expansions stable for incr. comp. by using the same architecture as definitions: - the interned identifier `ExpnId` contains a `CrateNum` and a crate-local id; - bidirectional maps `ExpnHash <-> ExpnId` are setup; - incr. comp. on-disk cache saves and reconstructs expansions using their `ExpnHash`. I tried to use as many `LocalExpnId` as I could in the resolver code, but I may have missed a few opportunities. All this will allow to use an `ExpnId` as a query key, and to force this query without recomputing caller queries. For instance, this will be used to implement #85999. r? `@petrochenkov`
2021-07-17Use LocalExpnId where possible.Camille GILLOT-2/+2
2021-07-16Auto merge of #87140 - camsteffen:pat-slice-refs, r=oli-obkbors-14/+14
Remove refs from Pat slices Changes `PatKind::Or(&'hir [&'hir Pat<'hir>])` to `PatKind::Or(&'hir [Pat<'hir>])` and others. This is more consistent with `ExprKind`, saves a little memory, and is a little easier to use.
2021-07-16Rollup merge of #87069 - sexxi-goose:copy_ref_always, r=nikomatsakisGuillaume Gomez-14/+9
ExprUseVisitor: Treat ByValue use of Copy types as ImmBorrow r? ```@nikomatsakis```
2021-07-15Update cargoEric Huss-0/+0
2021-07-15Remove refs from pat slicesCameron Steffen-14/+14
2021-07-15Auto merge of #87152 - flip1995:clippyup, r=Manishearthbors-607/+2225
Update Clippy r? `@Manishearth`
2021-07-15Rollup merge of #87147 - ehuss:update-cargo, r=ehussYuki Okushi-0/+0
Update cargo 13 commits in 3ebb5f15a940810f250b68821149387af583a79e..66a6737a0c9f3a974af2dd032a65d3e409c77aac 2021-07-02 20:35:38 +0000 to 2021-07-14 20:54:28 +0000 - Add format option to `cargo tree` to print the lib_name (rust-lang/cargo#9663) - Prefer patched versions of dependencies (rust-lang/cargo#9639) - When a dependency does not have a version, git or path, fails directly (rust-lang/cargo#9686) - Spot the crate typo easily (rust-lang/cargo#9665) - remove unnecessary 'collect' (rust-lang/cargo#9616) - Make it easier to run testsuite with a custom toolchain. (rust-lang/cargo#9679) - Serialize `cargo fix` (rust-lang/cargo#9677) - Don't recommend filing issues on rust-lang/cargo for Cargo.toml errors. (rust-lang/cargo#9658) - Update nightly failure notification. (rust-lang/cargo#9657) - Update Windows env uppercase key check. (rust-lang/cargo#9654) - Unignore fix_edition_2021. (rust-lang/cargo#9662) - Warning when using features in patch (rust-lang/cargo#9666) - Unify cargo and rustc's error reporting (rust-lang/cargo#9655)
2021-07-15Merge commit '54a20a02ecd0e1352a871aa0990bcc8b8b03173e' into clippyupflip1995-607/+2225
2021-07-14Update cargoEric Huss-0/+0
2021-07-14Add -Zfuture-incompat-test to assist with testing future-incompat reports.Eric Huss-4/+1
2021-07-14ExprUseVisitor::Delegate consume only when movingAman Arora-14/+9
2021-07-13Auto merge of #86827 - camsteffen:hash-lint-resolved, r=oli-obkbors-1/+1
Fix internal `default_hash_types` lint to use resolved path I run into false positives now and then (mostly in Clippy) when I want to name some util after HashMap.
2021-07-13Auto merge of #86922 - joshtriplett:target-abi, r=oli-obkbors-0/+1
target abi Implement cfg(target_abi) (RFC 2992) Add an `abi` field to `TargetOptions`, defaulting to "". Support using `cfg(target_abi = "...")` for conditional compilation on that field. Gated by `feature(cfg_target_abi)`. Add a test for `target_abi`, and a test for the feature gate. Add `target_abi` to tidy as a platform-specific cfg. Update targets to use `target_abi` All eabi targets have `target_abi = "eabi".` All eabihf targets have `target_abi = "eabihf"`. `armv6_unknown_freebsd` and `armv7_unknown_freebsd` have `target_abi = "eabihf"`. All abi64 targets have `target_abi = "abi64"`. All ilp32 targets have `target_abi = "ilp32"`. All softfloat targets have `target_abi = "softfloat"`. All *-uwp-windows-* targets have `target_abi = "uwp"`. All spe targets have `target_abi = "spe"`. All macabi targets have `target_abi = "macabi"`. aarch64-apple-ios-sim has `target_abi = "sim"`. `x86_64-fortanix-unknown-sgx` has `target_abi = "fortanix"`. `x86_64-unknown-linux-gnux32` has `target_abi = "x32"`. Add FIXME entries for targets for which existing values need to change once `cfg_target_abi` becomes stable. (All of them are tier 3 targets.) Add a test for `target_abi` in `--print cfg`.
2021-07-12:arrow_up: rust-analyzerLaurențiu Nicola-17/+17
2021-07-11update MiriRalf Jung-8/+9
2021-07-10rustc_span: Revert addition of `proc_macro` field to `ExpnKind::Macro`Vadim Petrochenkov-26/+4
The flag has a vague meaning and is used for a single diagnostic change that is low benefit and appears only under `-Z macro_backtrace`.
2021-07-09clippy: allow default_hash_types on bootstrapCameron Steffen-1/+1
2021-07-08Rollup merge of #84961 - GuillaumeGomez:rework-session-globals, r=oli-obkGuillaume Gomez-6/+11
Rework SESSION_GLOBALS API Fixes #84954. <s>Needs #84953 to be merged first (I cherry-picked its commits to have CI pass).</s> (done) r? ``@Aaron1011``
2021-07-08Rework SESSION_GLOBALS API to prevent overwriting itGuillaume Gomez-6/+11
2021-07-08Auto merge of #85363 - EFanZh:gdb-pretty-print-slices, r=michaelwoeristerbors-2/+2
Support pretty printing slices using GDB Support pretty printing `&[T]`, `&mut [T]` and `&mut str` types using GDB. Support pretty printing `&mut [T]` and `&mut str` types using LLDB. Fixes #85219.
2021-07-08Auto merge of #86949 - RalfJung:miri, r=RalfJungbors-8/+8
update Miri Fixes https://github.com/rust-lang/rust/issues/86923 Cc `@rust-lang/miri` r? `@ghost`
2021-07-07update MiriRalf Jung-8/+8
2021-07-07Implement cfg(target_abi) (RFC 2992)Josh Triplett-0/+1
Add an `abi` field to `TargetOptions`, defaulting to "". Support using `cfg(target_abi = "...")` for conditional compilation on that field. Gated by `feature(cfg_target_abi)`. Add a test for `target_abi`, and a test for the feature gate. Add `target_abi` to tidy as a platform-specific cfg. This does not add an abi to any existing target.