about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2022-12-03Auto merge of #97485 - bjorn3:new_archive_writer, r=wesleywiserbors-12/+13
Rewrite LLVM's archive writer in Rust This allows it to be used by other codegen backends. Fixes https://github.com/bjorn3/rustc_codegen_cranelift/issues/1155
2022-12-03Auto merge of #105183 - GuillaumeGomez:merge-and-dedup-predicates, r=notriddlebors-39/+117
Merge generics and where predicates and prevent duplicates in where predicates Part of #104886 (I didn't include bounds from parent trait yet as I think the PR is already big enough). Also we'll need to run a perf check. cc `@fmease` since you worked a bit on this. r? `@notriddle`
2022-12-03Auto merge of #105196 - JohnTitor:rollup-8rxqnq6, r=JohnTitorbors-69/+175
Rollup of 7 pull requests Successful merges: - #104903 (Use ocx.normalize in report_projection_error) - #105032 (improve doc of into_boxed_slice and impl From<Vec<T>> for Box<[T]>) - #105100 (Add missing intra-doc link) - #105181 (Don't add a note for implementing a trait if its inner type is erroneous) - #105182 (Rustdoc-Json: Don't inline foreign traits) - #105188 (Don't elide type information when printing E0308 with `-Zverbose`) - #105189 (rustdoc: clean up redundant CSS on `.rustdoc-toggle.hideme`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-12-03Rollup merge of #105189 - notriddle:notriddle/rustdoc-toggle-hideme, ↵Yuki Okushi-8/+2
r=GuillaumeGomez rustdoc: clean up redundant CSS on `.rustdoc-toggle.hideme`
2022-12-03Rollup merge of #105188 - compiler-errors:verbose-ty-err, r=TaKO8KiYuki Okushi-0/+34
Don't elide type information when printing E0308 with `-Zverbose` When we pass `-Zverbose`, we kinda expect for all `_` to be replaced with more descriptive information, for example -- ``` = note: expected fn pointer `fn(_, u32)` found fn item `fn(_, i32) {foo}` ``` Where `_` is the "identical" part of the fn signatures, now gets rendered as: ``` = note: expected fn pointer `fn(i32, u32)` found fn item `fn(i32, i32) {foo}` ```
2022-12-03Rollup merge of #105182 - aDotInTheVoid:rdj-no-foreign-traits, ↵Yuki Okushi-61/+95
r=Enselic,GuillaumeGomez Rustdoc-Json: Don't inline foreign traits It wasn't done correctly, and [we want to move towards only having local items in the index, and making foreign items easier to resolved](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/Rustdoc.20JSON.3A.20Include.20All.20Foreign.20Items.3F) Fixes #105025. This means #105015 is included to test this Fixes #105022 r? `@GuillaumeGomez`
2022-12-03Rollup merge of #105181 - bhbs:skip-note, r=estebankYuki Okushi-0/+44
Don't add a note for implementing a trait if its inner type is erroneous Fix #105138
2022-12-03Auto merge of #105073 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 9 commits in e027c4b5d25af2119b1956fac42863b9b3242744..f6e737b1e3386adb89333bf06a01f68a91ac5306 2022-11-25 19:44:46 +0000 to 2022-12-02 20:21:24 +0000 - Refactor generate_targets into separate module (https://github.com/rust-lang/cargo/pull/11445) - Improve file found in multiple build targets warning (https://github.com/rust-lang/cargo/pull/11299) - Error when precise without -p flag (https://github.com/rust-lang/cargo/pull/11349) - Improve strategy for selecting targets to be scraped for examples (https://github.com/rust-lang/cargo/pull/11430) - Aware of compression ratio for unpack size limit (https://github.com/rust-lang/cargo/pull/11337) - Add test for rustdoc-map generation when using sparse registries (https://github.com/rust-lang/cargo/pull/11403) - Add error message when `cargo fix` on an empty repo (https://github.com/rust-lang/cargo/pull/11400) - Store the sparse+ prefix in the SourceId for sparse registries (https://github.com/rust-lang/cargo/pull/11387) - Update documentation for -Zrustdoc-scrape-examples in the Cargo Book (https://github.com/rust-lang/cargo/pull/11425)
2022-12-03Update cargoWeihang Lo-0/+0
9 commits in e027c4b5d25af2119b1956fac42863b9b3242744..f6e737b1e3386adb89333bf06a01f68a91ac5306 2022-11-25 19:44:46 +0000 to 2022-12-02 20:21:24 +0000 - Refactor generate_targets into separate module (rust-lang/cargo#11445) - Improve file found in multiple build targets warning (rust-lang/cargo#11299) - Error when precise without -p flag (rust-lang/cargo#11349) - Improve strategy for selecting targets to be scraped for examples (rust-lang/cargo#11430) - Aware of compression ratio for unpack size limit (rust-lang/cargo#11337) - Add test for rustdoc-map generation when using sparse registries (rust-lang/cargo#11403) - Add error message when `cargo fix` on an empty repo (rust-lang/cargo#11400) - Store the sparse+ prefix in the SourceId for sparse registries (rust-lang/cargo#11387) - Update documentation for -Zrustdoc-scrape-examples in the Cargo Book (rust-lang/cargo#11425)
2022-12-03Don't add a note for implementing a trait if its inner type is erroneousbhbs-0/+44
2022-12-02rustdoc: clean up redundant CSS on `.rustdoc-toggle.hideme`Michael Howell-8/+2
2022-12-02Don't elide information when printing E0308 with ZverboseMichael Goulet-0/+34
2022-12-02Rollup merge of #105163 - compiler-errors:afit-lt-arity, r=jackh726Matthias Krüger-0/+41
Check lifetime param count in `collect_trait_impl_trait_tys` We checked the type and const generics count, but not the lifetimes, which were handled in a different function. Fixes #105154
2022-12-02Rollup merge of #105162 - compiler-errors:fn-sig-arity, r=cjgillotMatthias Krüger-0/+17
Properly synthesize `FnSig` value during cycle Get the arity correct when creating a `FnSig` type during `tcx.fn_sig` cycle recovery Fixes #105152
2022-12-02Rollup merge of #105155 - notriddle:notriddle/flexbox-help-settings-buttons, ↵Matthias Krüger-19/+10
r=GuillaumeGomez rustdoc: clean up help and settings button CSS The old version of this code specified a bunch of different numbers that had to line up just right to get the size it wanted. This version uses flexbox centering, specifies the font size, and lets the browser figure out the rest of the layout automatically. Preview: http://notriddle.com/notriddle-rustdoc-demos/flexbox-help-settings-buttons/test_dingus/
2022-12-02Rollup merge of #105033 - durin42:llvm-16-dont-tail-call-me-bro, r=tmandryMatthias Krüger-0/+5
sparc-struct-abi: work around new tail-call optimization Upstream LLVM change https://reviews.llvm.org/D138741 introduced some new tail-call smarts for SPARC which broke some of the checks in this test. Rather than adjust the test expectations, we add an extra no-args function that can get tail-called or not without hurting the needs of the test. r? ``@nikic``
2022-12-02Rollup merge of #105026 - oToToT:aarch64-v8a, r=davidtwcoMatthias Krüger-0/+37
v8a as default aarch64 target After https://github.com/llvm/llvm-project/commit/8689f5e landed, LLVM takes the intersection of v8a and v8r as default. This commit brings back v8a support by explicitly specifying v8a in the feature list. This should solve #97724. p.s. a bit more context can also be found in https://github.com/llvm/llvm-project/issues/57904#issuecomment-1329555590.
2022-12-02Update existing rustdoc testsGuillaume Gomez-6/+6
2022-12-02Add rustdoc test for bounds de-duplication and mergeGuillaume Gomez-0/+20
2022-12-02Merge generics and where predicates and prevent duplicates in where predicatesGuillaume Gomez-33/+91
2022-12-02Add test for #105022Nixon Enraght-Moony-0/+12
2022-12-02Add test for #105025Nixon Enraght-Moony-0/+21
2022-12-02Rustdoc-Json: Don't include foreign traitsNixon Enraght-Moony-61/+3
2022-12-02jsondoclint: Check `links` fieldNixon Enraght-Moony-0/+59
2022-12-02Auto merge of #104863 - nnethercote:reduce-lint-macros, r=cjgillotbors-204/+95
Reduce macro usage for lints r? `@cjgillot`
2022-12-02Rollup merge of #105143 - notriddle:notriddle/scraped-example-list-font, ↵Matthias Krüger-3/+32
r=GuillaumeGomez rustdoc: use simpler CSS for setting the font on scraped examples
2022-12-02Rollup merge of #105132 - GuillaumeGomez:migrate-summary-toggle-to-var, ↵Matthias Krüger-8/+33
r=notriddle Migrate summary toggle filter to CSS variable r? `@notriddle`
2022-12-02Rollup merge of #104614 - Nilstrieb:type-ascribe!, r=TaKO8KiMatthias Krüger-224/+198
Add `type_ascribe!` macro as placeholder syntax for type ascription This makes it still possible to test the internal semantics of type ascription even once the `:`-syntax is removed from the parser. The macro now gets used in a bunch of UI tests that test the semantics and not syntax of type ascription. I might have forgotten a few tests but this should hopefully be most of them. The remaining ones will certainly be found once type ascription is removed from the parser altogether. Part of #101728
2022-12-01Properly synthesize fn sig value during cycleMichael Goulet-0/+17
2022-12-02Auto merge of #104963 - petrochenkov:noaddids2, r=cjgillotbors-140/+158
rustc_ast_lowering: Stop lowering imports into multiple items Lower them into a single item with multiple resolutions instead. This also allows to remove additional `NodId`s and `DefId`s related to those additional items.
2022-12-02Merge `builtins` into `EarlyLintPassObjects`.Nicholas Nethercote-129/+86
This avoids calling `early_lint_node` twice. Note: one `early_lint_node` call had `!pre_expansion` for the second argument and the other had `false`. The new single call just has `!pre_expansion`. This results in a reduction of duplicate error messages in some `ui-fulldeps` tests. The order of some `ui-fulldeps` output also changes, but that doesn't matter.
2022-12-02Check lifetime param count in collect_trait_impl_trait_tysMichael Goulet-0/+41
2022-12-02Remove `-Zno-interleave-lints`.Nicholas Nethercote-75/+9
Because it complicates lint implementation greatly.
2022-12-01rustdoc: clean up help and settings button CSSMichael Howell-13/+8
The old version of this code specified a bunch of different numbers that had to line up just right to get the size it wanted. This version uses flexbox centering, specifies the font size, and lets the browser figure out the rest of the layout automatically.
2022-12-01Auto merge of #105140 - flip1995:clippyup, r=Manishearthbors-1914/+4245
Update Clippy r? `@Manishearth`
2022-12-01rustdoc: clean up button-hiding mobile CSSMichael Howell-6/+2
2022-12-01rustdoc: use simpler CSS for setting the font on scraped examplesMichael Howell-3/+32
2022-12-01Auto merge of #105125 - matthiaskrgr:rollup-fr0snmj, r=matthiaskrgrbors-1/+49
Rollup of 4 pull requests Successful merges: - #105078 (Fix `expr_to_spanned_string` ICE) - #105087 (Extract llvm datalayout parsing out of spec module) - #105088 (rustdoc: remove redundant CSS `div.desc { display: block }`) - #105106 (Fix ICE from #105101) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-12-01Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyupPhilipp Krones-1914/+4245
2022-12-01rustc_ast_lowering: Stop lowering imports into multiple itemsVadim Petrochenkov-59/+52
Lower them into a single item with multiple resolutions instead. This also allows to remove additional `NodId`s and `DefId`s related to those additional items.
2022-12-01rustc_hir: Change representation of import paths to support multiple resolutionsVadim Petrochenkov-73/+98
2022-12-01Add GUI test for toggle filter and opacityGuillaume Gomez-0/+29
2022-12-01Migrate summary toggle filter to CSS variableGuillaume Gomez-8/+4
2022-12-01Auto merge of #105003 - flba-eb:only_windows, r=Mark-Simulacrumbors-25/+3
Run Windows-only tests only on Windows This removes the need to maintain an ignore-list of all other OSs. See https://github.com/rust-lang/rust/pull/102305 for a similar change.
2022-12-01rustc_hir: Relax lifetime requirements on `Visitor::visit_path`Vadim Petrochenkov-8/+8
2022-12-01Ignore `gnu` systems (`windows-msvc` only)Florian Bartels-1/+2
2022-12-01Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-0/+5
2022-12-01Rollup merge of #105106 - jhpratt:issue-105101, r=TaKO8KiMatthias Krüger-0/+38
Fix ICE from #105101 Fixes #105101 Rather than comparing idents, compare spans, which should be unique to each variant.
2022-12-01Rollup merge of #105088 - notriddle:notriddle/search-results-div-desc, ↵Matthias Krüger-1/+0
r=GuillaumeGomez rustdoc: remove redundant CSS `div.desc { display: block }` DIV tags have block display by default. It is from when this rule used to target a SPAN tag, but became redundant in 4bd6748bb9b73c210558498070ae0b7ed8193ddf.
2022-12-01Rollup merge of #105078 - TaKO8Ki:fix-105011, r=nnethercoteMatthias Krüger-0/+11
Fix `expr_to_spanned_string` ICE Fixes #105011