about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2022-11-08Auto merge of #103965 - petrochenkov:effvisperf3, r=oli-obkbors-18/+79
resolve: More detailed effective visibility tracking for imports Per-`DefId` tracking is not enough, due to glob imports in particular, which have a single `DefId` for the whole glob import item. We need to track this stuff per every introduced name (`NameBinding`). Also drop `extern` blocks from the effective visibility table, they are nominally private and it doesn't make sense to keep them there. Later commits add some debug-only invariant checking and optimiaztions to mitigate regressions in https://github.com/rust-lang/rust/pull/103965#issuecomment-1304256445. This is a bugfix and continuation of https://github.com/rust-lang/rust/pull/102026.
2022-11-08ignore wasm in testlcnr-2/+4
2022-11-08selection failure: recompute applicable implslcnr-23/+67
2022-11-08Visit attributes of trait impl items during AST validationLeón Orell Valerian Liehr-0/+23
2022-11-08prevent uninitialized access in black_box for zero-sized-typesKrasimir Georgiev-0/+32
2022-11-08llvm: dwo only emitted when object code emittedDavid Wood-2/+55
`CompiledModule` should not think a DWARF object was emitted when a bitcode-only compilation has happened, this can confuse archive file creation (which expects to create an archive containing non-existent dwo files). Signed-off-by: David Wood <david.wood@huawei.com>
2022-11-08run-make-fulldeps: fix split debuginfo testDavid Wood-15/+145
Add lots of comments to this test and enable parts of the test that were added but never ran. Signed-off-by: David Wood <david.wood@huawei.com>
2022-11-08use subdiagnostic for sugesting add letyukang-0/+5
2022-11-08fix #103587, Recover from common if let syntax mistakes/typosyukang-0/+67
2022-11-08Rollup merge of #103651 - Alexendoo:parse-format-unicode-escapes, r=wesleywiserDylan DPC-0/+82
Fix `rustc_parse_format` spans following escaped utf-8 multibyte chars Currently too many skips are created for char escapes that are larger than 1 byte when encoded in UTF-8, [playground:](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=c77a9dc669b69b167271b59ed2c8d88c) ```rust fn main() { format!("\u{df}{a}"); format!("\u{211d}{a}"); format!("\u{1f4a3}{a}"); } ``` ``` error[[E0425]](https://doc.rust-lang.org/stable/error-index.html#E0425): cannot find value `a` in this scope --> src/main.rs:2:22 | 2 | format!("\u{df}{a}"); | ^ not found in this scope error[[E0425]](https://doc.rust-lang.org/stable/error-index.html#E0425): cannot find value `a` in this scope --> src/main.rs:3:25 | 3 | format!("\u{211d}{a}"); | ^ not found in this scope error[[E0425]](https://doc.rust-lang.org/stable/error-index.html#E0425): cannot find value `a` in this scope --> src/main.rs:4:27 | 4 | format!("\u{1f4a3}{a}"); | ^ not found in this scope ``` This reduces the number of skips to account for that Fixes https://github.com/rust-lang/rust-clippy/issues/9727
2022-11-07rustdoc: fix font color inheritance from body, and testMichael Howell-0/+73
2022-11-07rustdoc: use javascript to layout notable traits popupsMichael Howell-16/+35
Fixes #102576
2022-11-07Add a known that this is a known limitationJack Huey-0/+3
2022-11-07Get spans for a couple more region types, add some optimizations, and extend ↵Jack Huey-3/+76
test
2022-11-07Add an optional Span to BrAnon and use it to print better error for HRTB ↵Jack Huey-0/+45
error from generator interior
2022-11-07Reworked const fn ref testsonestacked-14/+59
2022-11-07Fix `const_fn_trait_ref_impl`, add test for itonestacked-0/+35
2022-11-07Add --print=split-debuginfoKamil Koczurek-1/+1
This option prints all supported values for -Csplit-debuginfo=.., i.e. only stable ones on stable/beta and all of them on nightly/dev.
2022-11-07Auto merge of #104102 - Dylan-DPC:rollup-0eakshe, r=Dylan-DPCbors-1/+253
Rollup of 6 pull requests Successful merges: - #103757 (Mention const and lifetime parameters in error E0207) - #103986 (Don't silently eat label before block in block-like expr) - #104003 (Move some tests to more reasonable directories) - #104038 (Normalize types when deducing closure signature from supertraits) - #104052 (Fix `resolution_failure` ICE) - #104090 (Modify comment syntax error) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-11-07Rollup merge of #104090 - wanghaha-dev:master, r=Dylan-DPCDylan DPC-1/+1
Modify comment syntax error Modify comment syntax error
2022-11-07Rollup merge of #104052 - TaKO8Ki:fix-103997, r=notriddleDylan DPC-0/+16
Fix `resolution_failure` ICE Fixes #103997
2022-11-07Rollup merge of #104038 - compiler-errors:super-norm-closure-sig, r=lcnrDylan DPC-0/+17
Normalize types when deducing closure signature from supertraits Elaborated supertraits should be normalized, since there's no guarantee they don't contain projections :sweat_smile: Fixes #104025 r? types
2022-11-07Rollup merge of #104003 - c410-f3r:moar-errors, r=petrochenkovDylan DPC-0/+0
Move some tests to more reasonable directories r? `@petrochenkov`
2022-11-07Rollup merge of #103986 - ↵Dylan DPC-0/+219
compiler-errors:oh-no-bad-block-should-not-have-label, r=lcnr Don't silently eat label before block in block-like expr Fixes #103983 cc #92823 (where the regression was introduced)
2022-11-07Auto merge of #101395 - saethlin:strict-provenance-codegen, r=nikicbors-0/+37
Add a codegen test for rust-lang/rust#96152 This is a regression test for https://github.com/rust-lang/rust/issues/96152, it is intended to check that our codegen for a particular strict provenance pattern is always as good as the ptr2int2ptr/provenance-ignoring style. r? `@nikic`
2022-11-07Fix rebaseJannis Christopher Köhl-2/+1
2022-11-07Remove copy of current const prop tests and add a few new testsJannis Christopher Köhl-2500/+253
2022-11-07Prevent propagation of overflow if overflow occuredJannis Christopher Köhl-1/+1
2022-11-07Improve documentation, plus some small changesJannis Christopher Köhl-4/+2
2022-11-07Make overflow flag propagation conditionalJannis Christopher Köhl-0/+53
2022-11-07Update test resultsJannis Christopher Köhl-4/+4
2022-11-07Update issue-50814.rs test resultJannis Christopher Köhl-9/+23
2022-11-07Improve example used for SB testsJannis Christopher Köhl-19/+47
2022-11-07Add tests for Stacked Borrows behaviorJannis Christopher Köhl-0/+120
2022-11-07Only assume Stacked Borrows if -Zunsound-mir-opts is givenJannis Christopher Köhl-84/+86
2022-11-07Update test results after rebaseJannis Christopher Köhl-28/+29
2022-11-07Add some more unit-test directivesJannis Christopher Köhl-112/+137
2022-11-07Update test resultsJannis Christopher Köhl-200/+122
2022-11-07Add tests from current const propJannis Christopher Köhl-0/+2297
2022-11-07Remove leftover test filesJannis Christopher Köhl-234/+0
2022-11-07Rebase onto masterJannis Christopher Köhl-6/+1
2022-11-07Add tracking of unreachabilityJannis Christopher Köhl-3/+6
2022-11-07Update other test resultsJannis Christopher Köhl-4/+238
2022-11-07Reject registration of downcasts for nowJannis Christopher Köhl-85/+85
2022-11-07Change test from usize to i32 to prevent target issuesJannis Christopher Köhl-12/+12
2022-11-07Add additional flooding when assigning a value and corresponding testJannis Christopher Köhl-0/+63
2022-11-07Remove empty testJannis Christopher Köhl-18/+0
2022-11-07Update test resultsJannis Christopher Köhl-16/+56
2022-11-07Update test resultsJannis Christopher Köhl-12/+16
2022-11-07Add initial version of value analysis and dataflow constant propagationJannis Christopher Köhl-0/+769