about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2022-12-13Combine identical alias armsMichael Goulet-120/+69
2022-12-13Combine projection and opaque into aliasMichael Goulet-381/+387
2022-12-13squash OpaqueTy and ProjectionTy into AliasTyMichael Goulet-197/+182
2022-12-13ProjectionTy.item_def_id -> ProjectionTy.def_idMichael Goulet-186/+164
2022-12-13Use ty::OpaqueTy everywhereMichael Goulet-118/+156
2022-12-13make Opaque have one field: OpaqueTyMichael Goulet-17/+28
2022-12-13Auto merge of #105612 - oli-obk:bind_rustdoc, r=GuillaumeGomezbors-102/+174
use ty::Binder in rustdoc instead of `skip_binder` r? `@GuillaumeGomez` this is a preliminary cleanup required to be able to normalize correctly/conveniently in rustdoc
2022-12-13Auto merge of #105350 - compiler-errors:faster-binder-relate, r=oli-obkbors-5/+63
Fast-path some binder relations A simpler approach than #104598 Fixes #104583 r? types
2022-12-13Auto merge of #105436 - ↵bors-51/+46
nnethercote:inline-place_contents_drop_state_cannot_differ, r=spastorino Inline and remove `place_contents_drop_state_cannot_differ`. It has a single call site and is hot enough to be worth inlining. And make sure `is_terminal_path` is inlined, too. r? `@ghost`
2022-12-13Fast path some binder relationsMichael Goulet-5/+63
2022-12-13Auto merge of #105644 - matthiaskrgr:rollup-qc6hlzq, r=matthiaskrgrbors-244/+865
Rollup of 8 pull requests Successful merges: - #104864 (Account for item-local in inner scope for E0425) - #105332 (Point out the type of associated types in every method call of iterator chains) - #105620 (Remove unnecessary uses of `clone`) - #105625 (minor code cleanups) - #105629 (rustdoc: stop treating everything in a trait item as a method) - #105636 (Add check for local-storage value when changing "display line numbers" settings) - #105639 (rustdoc: remove `type="text/css" from stylesheet links) - #105640 (Adjust miri to still be optional) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-12-13Rollup merge of #105640 - lukas-code:miri-beta, r=Mark-SimulacrumMatthias Krüger-25/+31
Adjust miri to still be optional r? `@pietroalbini`
2022-12-13Rollup merge of #105639 - notriddle:notriddle/text-css, r=GuillaumeGomezMatthias Krüger-3/+2
rustdoc: remove `type="text/css" from stylesheet links MDN directly recommends this in <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link>, since "CSS is the only stylesheet language used on the web." Like 07a243b2a46384235d7e2c08688978b7cf018973, but a few places that were missed the first time.
2022-12-13Rollup merge of #105636 - GuillaumeGomez:extend-gui-test, r=notriddleMatthias Krüger-0/+2
Add check for local-storage value when changing "display line numbers" settings r? `@notriddle`
2022-12-13Rollup merge of #105629 - notriddle:notriddle/method-toggle-trait, ↵Matthias Krüger-3/+13
r=GuillaumeGomez rustdoc: stop treating everything in a trait item as a method This was added in 0b9b4b70683db6ef707755f520f139eb7b92a944 to fix the spacing on trait pages, but stopped being needed because 791f04e5a47ee78951552c7ed1545b2b01a44c74 stopped styling method-toggle. By only putting the method-toggle class on actual methods, the JS setting does the right thing.
2022-12-13Rollup merge of #105625 - matthiaskrgr:clippy_dec12, r=compiler-errorsMatthias Krüger-20/+11
minor code cleanups r? `@compiler-errors`
2022-12-13Rollup merge of #105620 - TaKO8Ki:remove-unnecessary-uses-of-clone, ↵Matthias Krüger-7/+7
r=compiler-errors Remove unnecessary uses of `clone`
2022-12-13Rollup merge of #105332 - estebank:iterator-chains, r=oli-obkMatthias Krüger-185/+744
Point out the type of associated types in every method call of iterator chains Partially address #105184 by pointing out the type of associated types in every method call of iterator chains: ``` note: the expression is of type `Map<std::slice::Iter<'_, {integer}>, [closure@src/test/ui/iterators/invalid-iterator-chain.rs:12:18: 12:21]>` --> src/test/ui/iterators/invalid-iterator-chain.rs:12:14 | 10 | vec![0, 1] | ---------- this expression has type `Vec<{integer}>` 11 | .iter() | ------ associated type `std::iter::Iterator::Item` is `&{integer}` here 12 | .map(|x| { x; }) | ^^^^^^^^^^^^^^^ associated type `std::iter::Iterator::Item` is `()` here ``` We also reduce the number of impls we mention when any of the candidates is an "exact match". This benefits the output of cases with numerics greatly. Outstanding work would be to provide a structured suggestion for appropriate changes, like in this case detecting the spurious `;` in the closure.
2022-12-13Rollup merge of #104864 - chenyukang:yukang/fix-104700-binding, r=estebankMatthias Krüger-1/+55
Account for item-local in inner scope for E0425 Fixes #104700
2022-12-13Adjust miri to still be optionalMark Rousskov-25/+31
We don't distribute a miri build for beta/stable so it needs to be kept optional. In the future it likely makes sense to switch the miri *artifacts* to always be built, but the rustup component to not be included -- this will avoid some of this pain.
2022-12-12rustdoc: remove `type="text/css" from stylesheet linksMichael Howell-3/+2
MDN directly recommends this in <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link>, since "CSS is the only stylesheet language used on the web." Like 07a243b2a46384235d7e2c08688978b7cf018973, but a few places that were missed the first time.
2022-12-12Add check for local-storage value when changing "display line numbers" settingsGuillaume Gomez-0/+2
2022-12-12Auto merge of #105622 - matthiaskrgr:rollup-a6i81q7, r=matthiaskrgrbors-24/+180
Rollup of 8 pull requests Successful merges: - #104405 (1.66.0 release notes) - #105561 (Normalize receiver substs and erase the regions) - #105593 (Fix typo in comment: length_limit) - #105597 (Correct typos in `core::sync::Exclusive::get_{pin_mut, mut}`) - #105614 (delete mentions of type ascription from lint descriptions) - #105615 (Fixup method doc that mentions removed param) - #105616 (Add a "the" to proc_macro documentation) - #105619 (rustdoc: remove no-op CSS `.source pre { overflow: auto }`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-12-12Do not `skip_binder`sEsteban Küber-6/+9
2022-12-12rustdoc: stop treating everything in a trait item as a methodMichael Howell-3/+13
This was added in 0b9b4b70683db6ef707755f520f139eb7b92a944 to fix the spacing on trait pages, but stopped being needed because 791f04e5a47ee78951552c7ed1545b2b01a44c74 stopped styling method-toggle. By only putting the method-toggle class on actual methods, the JS setting does the right thing.
2022-12-12minor code cleanupsMatthias Krüger-20/+11
2022-12-12Rollup merge of #105619 - notriddle:notriddle/source-pre-overflow, ↵Matthias Krüger-1/+0
r=GuillaumeGomez rustdoc: remove no-op CSS `.source pre { overflow: auto }` Since source pages use the `example-wrap` wrapper, this rule became redundant because there is already an `overflow-x: auto` rule.
2022-12-12Rollup merge of #105616 - est31:add_the, r=Dylan-DPCMatthias Krüger-1/+1
Add a "the" to proc_macro documentation
2022-12-12Rollup merge of #105615 - WaffleLapkin:remove_opt_scope_span_mention, ↵Matthias Krüger-4/+2
r=compiler-errors Fixup method doc that mentions removed param The param was removed in https://github.com/rust-lang/rust/pull/61872 (101a2f59b490650c12c5f9e4561a7390bfce78d3)
2022-12-12Rollup merge of #105614 - lukas-code:ascription, r=NilstriebMatthias Krüger-14/+17
delete mentions of type ascription from lint descriptions Tracking Issue: https://github.com/rust-lang/rust/issues/101728
2022-12-12Rollup merge of #105597 - albertlarsan68:patch-1, r=Dylan-DPCMatthias Krüger-2/+2
Correct typos in `core::sync::Exclusive::get_{pin_mut, mut}`
2022-12-12Rollup merge of #105593 - jruderman:patch-3, r=Dylan-DPCMatthias Krüger-1/+1
Fix typo in comment: length_limit
2022-12-12Rollup merge of #105561 - TaKO8Ki:fix-105449, r=fee1-deadMatthias Krüger-1/+66
Normalize receiver substs and erase the regions Fixes #105449
2022-12-12Rollup merge of #104405 - Mark-Simulacrum:relnotes, r=pietroalbiniMatthias Krüger-0/+91
1.66.0 release notes r? ``@tmandry`` ``@rust-lang/release``
2022-12-12Move logic to their own methodsEsteban Küber-362/+391
2022-12-13remove unnecessary uses of `clone`Takayuki Maeda-7/+7
2022-12-12rustdoc: remove no-op CSS `.source pre { overflow: auto }`Michael Howell-1/+0
Since source pages use the `example-wrap` wrapper, this rule became redundant because there is already an `overflow-x: auto` rule.
2022-12-12delete mentions of type ascription from lint descriptionsLukas Markeffsky-14/+17
Move it to the historical context section instead.
2022-12-12Fixup method doc that mentions removed paramMaybe Waffle-4/+2
2022-12-12Add a "the" to proc_macro documentationest31-1/+1
2022-12-12Avoid trying to normalize unnormalizable typesOli Scherer-3/+10
2022-12-12Round 3: require binders for substsOli Scherer-28/+50
2022-12-12normalize receiver substs and erase the regionsTakayuki Maeda-1/+66
use a smaller example
2022-12-121.66.0 release notesMark Rousskov-0/+91
2022-12-12Round 2: make clean_middle_ty take a binderOli Scherer-56/+92
2022-12-12Round 1: add some binders (fails due to losing bound vars and then rebinding ↵Oli Scherer-26/+33
them with `Binder::dummy`)
2022-12-12Auto merge of #105252 - bjorn3:codegen_less_pair_values, r=nagisabors-35/+30
Use struct types during codegen in less places This makes it easier to use cg_ssa from a backend like Cranelift that doesn't have any struct types at all. After this PR struct types are still used for function arguments and return values. Removing those usages is harder but should still be doable.
2022-12-12Correct typos in `core::sync::Exclusive::get_{pin_mut, mut}`Albert Larsan-2/+2
2022-12-12Auto merge of #105592 - matthiaskrgr:rollup-1cazogq, r=matthiaskrgrbors-34/+35
Rollup of 2 pull requests Successful merges: - #104997 (Move tests) - #105569 (`bug!` with a better error message for failing `Instance::resolve`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-12-12Rollup merge of #105569 - compiler-errors:resolve-bug-better, r=TaKO8KiMatthias Krüger-15/+34
`bug!` with a better error message for failing `Instance::resolve` Better ICE message when `.unwrap().unwrap()` fails.