about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2022-12-03suggest parenthesis around ExprWithBlock BinOp ExprWithBlockLukas Markeffsky-1/+66
2022-12-03Rollup merge of #105208 - chenyukang:yukang/fix-105069, r=cjgillotMatthias Krüger-0/+32
Add AmbiguityError for inconsistent resolution for an import Fixes #105069 Fixes #83950
2022-12-03Rollup merge of #105201 - cjgillot:issue-105040, r=compiler-errorsMatthias Krüger-0/+32
Do not call fn_sig on non-functions. Fixes https://github.com/rust-lang/rust/issues/105040 Fixes https://github.com/rust-lang/rust/issues/89271
2022-12-03Rollup merge of #105200 - cjgillot:issue-104562, r=compiler-errorsMatthias Krüger-0/+22
Remove useless filter in unused extern crate check. Fixes https://github.com/rust-lang/rust/issues/104562
2022-12-03Rollup merge of #105193 - tmiasko:naked-nocoverage, r=wesleywiserMatthias Krüger-0/+19
Disable coverage instrumentation for naked functions Fixes #105170.
2022-12-03Rollup merge of #105164 - compiler-errors:revert-import-filter, r=estebankMatthias Krüger-6/+15
Restore `use` suggestion for `dyn` method call requiring `Sized` Add the suggestion back that I accidentally removed in 88f2140d8736329610a4c0bd8000e164c9170537 because I didn't understand that suggestion was actually useful... Fixes #105159
2022-12-03Rollup merge of #104199 - SarthakSingh31:issue-97417-1, r=cjgillotMatthias Krüger-0/+1
Keep track of the start of the argument block of a closure This removes a call to `tcx.sess.source_map()` from [compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs](https://github.com/rust-lang/rust/compare/master...SarthakSingh31:issue-97417-1?expand=1#diff-8406bbc0d0b43d84c91b1933305df896ecdba0d1f9269e6744f13d87a2ab268a) as required by #97417. VsCode automatically applied `rustfmt` to the files I edited under `src/tools`. I can undo that if its a problem. r? `@cjgillot`
2022-12-03Remove unused GUI testGuillaume Gomez-4/+0
2022-12-03fix #101749, use . instead of :: when accessing a method of an objectyukang-51/+128
2022-12-03fix #105069, Add AmbiguityError for inconsistent resolution for an importyukang-0/+32
2022-12-03parser: fix ICE with invalid variable declaration in macro callYutaro Ohno-0/+52
Fix ICE on parsing an invalid variable declaration as a statement like: ``` macro_rules! m { ($s:stmt) => {} } m! { var x } ```
2022-12-03Auto merge of #105183 - GuillaumeGomez:merge-and-dedup-predicates, r=notriddlebors-6/+26
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-03Do not call fn_sig on non-functions.Camille GILLOT-0/+32
2022-12-03Remove useless filter in unused extern crate check.Camille GILLOT-0/+22
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-9/+35
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-02Fix passing MACOSX_DEPLOYMENT_TARGET to the linkerBlackHoleFox-0/+25
2022-12-03Don't add a note for implementing a trait if its inner type is erroneousbhbs-0/+44
2022-12-03Disable coverage instrumentation for naked functionsTomasz Miąsko-0/+19
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 #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-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-9/+2
2022-12-02Fix async track caller for assoc fn and trait impl fnGary Guo-0/+14
2022-12-02Use proper HirId for async track_caller attribute checkGary Guo-0/+11
2022-12-02Auto merge of #104863 - nnethercote:reduce-lint-macros, r=cjgillotbors-200/+94
Reduce macro usage for lints r? `@cjgillot`
2022-12-02return when expr has errorTakayuki Maeda-0/+49
fmt add a comment
2022-12-02Rollup merge of #105143 - notriddle:notriddle/scraped-example-list-font, ↵Matthias Krüger-0/+31
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-0/+29
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-01While parsing enum variant, the error message always disappearYiming Lei-0/+31
Because the error message that emit out is from main error of parser The information of enum variant disappears while parsing enum variant with error We only check the syntax of expecting token, i.e, in case #103869 It will error it without telling the message that this error is from pasring enum variant. Propagate the sub-error from parsing enum variant to the main error of parser by chaining it with map_err Check the sub-error before emitting the main error of parser and attach it. Fix #103869
2022-12-02Revert 88f2140Michael Goulet-6/+15
2022-12-01Properly synthesize fn sig value during cycleMichael Goulet-0/+17
2022-12-02Auto merge of #104963 - petrochenkov:noaddids2, r=cjgillotbors-47/+40
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-02Avoid InferCtxt::build in suggest_missing_break_or_return_exprMichael Goulet-4/+34
2022-12-02Check lifetime param count in collect_trait_impl_trait_tysMichael Goulet-0/+41
2022-12-02Remove `-Zno-interleave-lints`.Nicholas Nethercote-71/+8
Because it complicates lint implementation greatly.
2022-12-01Disable top-down inliningJakob Degen-93/+237
2022-12-01rustdoc: use simpler CSS for setting the font on scraped examplesMichael Howell-0/+31
2022-12-01Make inline const block `ExprWithBlock`Gary Guo-0/+25
2022-12-01Auto merge of #105125 - matthiaskrgr:rollup-fr0snmj, r=matthiaskrgrbors-0/+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-01rustc_ast_lowering: Stop lowering imports into multiple itemsVadim Petrochenkov-47/+40
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.