about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2023-01-13rustdoc: remove unnecessary DOM class `h1.fqn`Michael Howell-8/+8
It's misleading. The main heading sometimes isn't an fully qualified name at all. It's also redundant. It's always a child of `div.main-heading`, so just use that.
2023-01-13Remove redundant session fieldOli Scherer-14/+11
2023-01-13CrateData: don't allocate String when Serialize, &str is enoughklensy-1/+1
2023-01-13Playground.crate_name String -> Symbolklensy-6/+5
2023-01-13fmt_type: don't alloc const String, use &str insteadklensy-1/+1
2023-01-13generate_macro_def_id_path: don't eagerly stringify Symbolsklensy-7/+12
2023-01-13Auto merge of #106776 - oli-obk:om_nom_nom_nom_nom, r=cjgillotbors-2/+2
Feed a bunch of queries instead of tracking fields on TyCtxt r? `@cjgillot` pulled out of https://github.com/rust-lang/rust/pull/105462
2023-01-13clippyRalf Jung-1/+1
2023-01-13IndexItem.name String -> Symbolklensy-9/+10
2023-01-13evade clonesklensy-4/+4
2023-01-13Remove stale reference to the test suite locationAlbert Larsan-3/+2
2023-01-13Auto merge of #106801 - JohnTitor:rollup-xqkraw0, r=JohnTitorbors-3/+6
Rollup of 6 pull requests Successful merges: - #106608 (Render missing generics suggestion verbosely) - #106716 ([RFC 2397] Deny incorrect locations) - #106754 (Rename `Ty::is_ty_infer` -> `Ty::is_ty_or_numeric_infer`) - #106782 (Ignore tests move in git blame) - #106785 (Make blame spans better for impl wfcheck) - #106791 (Fix ICE formatting) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-13Merge from rustcRalf Jung-854923/+17109
2023-01-13Preparing for merge from rustcRalf Jung-1/+1
2023-01-13Rollup merge of #106608 - compiler-errors:missing-generics-verbose, r=estebankYuki Okushi-3/+6
Render missing generics suggestion verbosely It's a bit easier to read like this, especially ones that are appending new generics onto an existing list, like ": `, T`" which render somewhat poorly inline. Also don't suggest `dyn` as a type parameter to add, even if technically that's valid in edition 2015.
2023-01-13Auto merge of #106092 - asquared31415:start_lang_item_checks, r=davidtwcobors-1/+1
Add checks for the signature of the `start` lang item Closes #105963
2023-01-13Auto merge of #106004 - fee1-dead-contrib:const-closures, r=oli-obkbors-3/+17
Const closures cc https://github.com/rust-lang/rust/issues/106003
2023-01-12Auto merge of #106786 - JohnTitor:rollup-8f4vk8m, r=JohnTitorbors-26/+18
Rollup of 8 pull requests Successful merges: - #105795 (Stabilize `abi_efiapi` feature) - #106446 ([LSDA] Take ttype_index into account when taking unwind action) - #106675 (Mark ZST as FFI-safe if all its fields are PhantomData) - #106740 (Adding a hint on iterator type errors) - #106741 (Fix reexport of `doc(hidden)` item) - #106759 (Revert "Make nested RPITIT inherit the parent opaque's generics.") - #106772 (Re-add mw to review rotation) - #106778 (Exclude formatting commit from blame) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-12Don't suggest dyn as parameter to addMichael Goulet-3/+6
2023-01-13Rollup merge of #106741 - GuillaumeGomez:reexport-doc-hidden, r=notriddleYuki Okushi-3/+18
Fix reexport of `doc(hidden)` item Part of #59368. It doesn't fix the `doc(inline)` nor the `doc(hidden)` on macro. I'll do it in a follow-up PR. r? `@notriddle`
2023-01-13Rollup merge of #105795 - nicholasbishop:bishop-stabilize-efiapi, r=joshtriplettYuki Okushi-23/+0
Stabilize `abi_efiapi` feature Tracking issue: https://github.com/rust-lang/rust/issues/65815 Closes #65815
2023-01-12Auto merge of #106780 - flip1995:clippyup, r=Manishearthbors-850/+1879
Update Clippy r? `@Manishearth`
2023-01-12Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyupPhilipp Krones-1/+4
2023-01-12Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyupPhilipp Krones-850/+1879
2023-01-12Don't pass `--sysroot` twice if SYSROOT is setJoshua Nelson-1/+4
This is useful for rust-lang/rust to allow setting a sysroot that's *only* for build scripts, different from the regular sysroot passed in RUSTFLAGS (since cargo doesn't apply RUSTFLAGS to build scripts or proc-macros). That said, the exact motivation is not particularly important: this fixes a regression from https://github.com/rust-lang/rust-clippy/pull/9881/commits/5907e9155ed7f1312d108aa2110853472da3b029#r1060215684. Note that only RUSTFLAGS is tested in the new integration test; passing --sysroot through `clippy-driver` never worked as far as I can tell, and no one is using it, so I didn't fix it here.
2023-01-12Feed the `features_query` instead of grabbing it from the session lazilyOli Scherer-2/+2
2023-01-12Auto merge of #106773 - Nilstrieb:rollup-sq73pyg, r=Nilstriebbors-6/+12
Rollup of 6 pull requests Successful merges: - #105806 (Support eager subdiagnostics again) - #106322 (Handle inference variables in `CollectAllMismatches` correctly) - #106579 (Suggest making private tuple struct field public) - #106714 (remove unreachable error code `E0490`) - #106751 (Fix rendering 'const' in header for intrinsics) - #106761 (Add `WaffleLapkin` to compiler reviewers) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-12Fix not displayed re-export of `doc(hidden)` itemGuillaume Gomez-3/+18
2023-01-12Rollup merge of #106751 - clubby789:const-intrinsic, r=GuillaumeGomeznils-2/+10
Fix rendering 'const' in header for intrinsics Fixes #99398
2023-01-12Rollup merge of #106714 - Ezrashaw:remove-e0490, r=davidtwconils-4/+2
remove unreachable error code `E0490` AFAIK, the untested and undocumented error code `E0490` is now unreachable, it was from the days of the original borrow checker. cc ``@GuillaumeGomez`` #61137
2023-01-12Auto merge of #105603 - oli-obk:non_repeatable_queries, r=petrochenkovbors-9/+6
Harden the pre-tyctxt query system against accidental recomputation While the current compiler has no issues where we `take` and then compute the query again, in https://github.com/rust-lang/rust/pull/105462 I accidentally introduced such a case. I also took the opportunity to remove `peek_mut`, which is only ever used for `global_tcx` to then invoke `enter`. I added an `enter` method directly on the query.
2023-01-12Auto merge of #106760 - compiler-errors:rollup-0bogyco, r=compiler-errorsbors-4/+0
Rollup of 8 pull requests Successful merges: - #103236 (doc: rewrite doc for signed int::{carrying_add,borrowing_sub}) - #103800 (Stabilize `::{core,std}::pin::pin!`) - #106097 (Migrate mir_build diagnostics 2 of 3) - #106170 (Move autoderef to `rustc_hir_analysis`) - #106323 (Stabilize f16c_target_feature) - #106360 (Tweak E0277 `&`-removal suggestions) - #106524 (Label `struct/enum constructor` instead of `fn item`, mention that it should be called on type mismatch) - #106739 (Remove `<dyn AstConv<'tcx>>::fun(c, ...)` calls in favour of `c.astconv().fun(...)`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-12Remove dead code in rustdoc stripperGuillaume Gomez-11/+1
2023-01-12Harden the pre-tyctxt query system against accidental recomputationOli Scherer-9/+6
2023-01-12Auto merge of #106757 - matthiaskrgr:rollup-9j8830g, r=matthiaskrgrbors-71/+3
Rollup of 10 pull requests Successful merges: - #106167 (Fix invalid syntax and incomplete suggestion in impl Trait parameter type suggestions for E0311) - #106309 (Prefer non-`[type error]` candidates during selection) - #106532 (Allow codegen to unsize `dyn*` to `dyn`) - #106596 (Hide more of long types in E0271) - #106638 (std tests: use __OsLocalKeyInner from realstd) - #106676 (Test that we cannot use trait impl methods arguments as defining uses) - #106702 (Conserve cause of `ImplDerivedObligation` in E0599) - #106732 (rustc_llvm: replace llvm::makeArrayRef with ArrayRef constructors.) - #106733 (Revert "warn newer available version of the x tool") - #106748 (Clean up `OnUnimplementedFormatString::verify`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-11Rollup merge of #103800 - danielhenrymantilla:stabilize-pin-macro, r=dtolnayMichael Goulet-4/+0
Stabilize `::{core,std}::pin::pin!` As discussed [over here](https://github.com/rust-lang/rust/issues/93178#issuecomment-1295843548), it looks like a decent time to stabilize the `pin!` macro. ### Public API ```rust // in module `core::pin` /// API: `fn pin<T>($value: T) -> Pin<&'local mut T>` pub macro pin($value:expr $(,)?) { … } ``` - Tracking issue: #93178 (now all this needs is an FCP by the proper team?)
2023-01-12Rollup merge of #106733 - DebugSteven:revert-104552-warn-newer-x, r=jyn514Matthias Krüger-71/+3
Revert "warn newer available version of the x tool" Reverts rust-lang/rust#104552 Running the x executable directly created an [issue](https://github.com/rust-lang/rust/issues/106469) here. There are other options for warning a user that a newer version of x exists in the issue's discussion as well. r? `@jyn514`
2023-01-12Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514bors-4/+0
Use CI LLVM in `test-various` builder It was disabled because it needs `lld`, but since #104748 was merged it is no longer needed. This will speed this test, since it no longer needs to build LLVM.
2023-01-12move to correct testDeadbeef-53/+0
2023-01-12Fix rendering 'const' for intrinsicsclubby789-2/+10
2023-01-12fix fmt and blessDeadbeef-0/+11
2023-01-12fix fn_sig iceDeadbeef-0/+15
2023-01-12parse const closuresDeadbeef-3/+17
2023-01-12attempt to make a minimal example workDeadbeef-1/+12
2023-01-12gate const closuresDeadbeef-0/+16
2023-01-12parse const closuresDeadbeef-3/+17
2023-01-11Stabilize `abi_efiapi` featureNicholas Bishop-23/+0
Tracking issue: https://github.com/rust-lang/rust/issues/65815
2023-01-12remove unreachable error code `E0490`Ezra Shaw-4/+2
2023-01-12Update clippy for new format_args!() lang items.Mara Bos-25/+35
2023-01-12Update rustfmt for ast::ExprKind::FormatArgs.Mara Bos-1/+5
Rustfmt doesn't expand macros, so that's easy: FormatArgs nodes do not occur in the unexpanded AST.