rust/src/test/ui
Joshua Nelson 31e39446ec Stabilize #![feature(label_break_value)]
# Stabilization proposal

The feature was implemented in https://github.com/rust-lang/rust/pull/50045 by est31 and has been in nightly since 2018-05-16 (over 4 years now).
There are [no open issues][issue-label] other than the tracking issue. There is a strong consensus that `break` is the right keyword and we should not use `return`.

There have been several concerns raised about this feature on the tracking issue (other than the one about tests, which has been fixed, and an interaction with try blocks, which has been fixed).
1. nrc's original comment about cost-benefit analysis: https://github.com/rust-lang/rust/issues/48594#issuecomment-422235234
2. joshtriplett's comments about seeing use cases: https://github.com/rust-lang/rust/issues/48594#issuecomment-422281176
3. withoutboats's comments that Rust does not need more control flow constructs: https://github.com/rust-lang/rust/issues/48594#issuecomment-450050630

Many different examples of code that's simpler using this feature have been provided:
- A lexer by rpjohnst which must repeat code without label-break-value: https://github.com/rust-lang/rust/issues/48594#issuecomment-422502014
- A snippet by SergioBenitez which avoids using a new function and adding several new return points to a function: https://github.com/rust-lang/rust/issues/48594#issuecomment-427628251. This particular case would also work if `try` blocks were stabilized (at the cost of making the code harder to optimize).
- Several examples by JohnBSmith: https://github.com/rust-lang/rust/issues/48594#issuecomment-434651395
- Several examples by Centril: https://github.com/rust-lang/rust/issues/48594#issuecomment-440154733
- An example by petrochenkov where this is used in the compiler itself to avoid duplicating error checking code: https://github.com/rust-lang/rust/issues/48594#issuecomment-443557569
- Amanieu recently provided another example related to complex conditions, where try blocks would not have helped: https://github.com/rust-lang/rust/issues/48594#issuecomment-1184213006

Additionally, petrochenkov notes that this is strictly more powerful than labelled loops due to macros which accidentally exit a loop instead of being consumed by the macro matchers: https://github.com/rust-lang/rust/issues/48594#issuecomment-450246249

nrc later resolved their concern, mostly because of the aforementioned macro problems.
joshtriplett suggested that macros could be able to generate IR directly
(https://github.com/rust-lang/rust/issues/48594#issuecomment-451685983) but there are no open RFCs,
and the design space seems rather speculative.

joshtriplett later resolved his concerns, due to a symmetry between this feature and existing labelled break: https://github.com/rust-lang/rust/issues/48594#issuecomment-632960804

withoutboats has regrettably left the language team.

joshtriplett later posted that the lang team would consider starting an FCP given a stabilization report: https://github.com/rust-lang/rust/issues/48594#issuecomment-1111269353

[issue-label]: https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Aopen+label%3AF-label_break_value+

 ## Report

+ Feature gate:
    - d695a497bb/src/test/ui/feature-gates/feature-gate-label_break_value.rs
+ Diagnostics:
    - 6b2d3d5f3c/compiler/rustc_parse/src/parser/diagnostics.rs (L2629)
    - f65bf0b2bb/compiler/rustc_resolve/src/diagnostics.rs (L749)
    - f65bf0b2bb/compiler/rustc_resolve/src/diagnostics.rs (L1001)
    - 111df9e6ed/compiler/rustc_passes/src/loops.rs (L254)
    - d695a497bb/compiler/rustc_parse/src/parser/expr.rs (L2079)
    - d695a497bb/compiler/rustc_parse/src/parser/expr.rs (L1569)
+ Tests:
    - https://github.com/rust-lang/rust/blob/master/src/test/ui/label/label_break_value_continue.rs
    - https://github.com/rust-lang/rust/blob/master/src/test/ui/label/label_break_value_unlabeled_break.rs
    - https://github.com/rust-lang/rust/blob/master/src/test/ui/label/label_break_value_illegal_uses.rs
    - https://github.com/rust-lang/rust/blob/master/src/test/ui/lint/unused_labels.rs
    - https://github.com/rust-lang/rust/blob/master/src/test/ui/run-pass/for-loop-while/label_break_value.rs

 ## Interactions with other features

Labels follow the hygiene of local variables.

label-break-value is permitted within `try` blocks:
```rust
let _: Result<(), ()> = try {
    'foo: {
        Err(())?;
        break 'foo;
    }
};
```

label-break-value is disallowed within closures, generators, and async blocks:
```rust
'a: {
    || break 'a
    //~^ ERROR use of unreachable label `'a`
    //~| ERROR `break` inside of a closure
}
```

label-break-value is disallowed on [_BlockExpression_]; it can only occur as a [_LoopExpression_]:
```rust
fn labeled_match() {
    match false 'b: { //~ ERROR block label not supported here
        _ => {}
    }
}

macro_rules! m {
    ($b:block) => {
        'lab: $b; //~ ERROR cannot use a `block` macro fragment here
        unsafe $b; //~ ERROR cannot use a `block` macro fragment here
        |x: u8| -> () $b; //~ ERROR cannot use a `block` macro fragment here
    }
}

fn foo() {
    m!({});
}
```

[_BlockExpression_]: https://doc.rust-lang.org/nightly/reference/expressions/block-expr.html
[_LoopExpression_]: https://doc.rust-lang.org/nightly/reference/expressions/loop-expr.html
2022-08-23 21:14:12 -05:00
..
abi Fix rust-call ICE in mir-inliner 2022-07-02 21:40:33 +00:00
alloc-error Cleanup feature gates. 2022-03-03 18:50:28 +01:00
allocator Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
annotate-snippet Bless tests 2021-10-15 02:36:58 -05:00
anon-params Practice diagnostic message convention 2021-10-03 16:16:28 +09:00
argument-suggestions Rollup merge of #100458 - compiler-errors:fn-argument-span, r=estebank 2022-08-15 20:11:35 +02:00
array-slice-vec use span_suggestion instead of span_suggestion_verbose 2022-08-16 03:42:58 +09:00
asm Update the minimum external LLVM to 13 2022-08-14 13:46:51 -07:00
associated-consts Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
associated-item Add E0790 as more specific variant of E0283 2022-07-19 10:16:10 +02:00
associated-type-bounds Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
associated-types Rollup merge of #100596 - TaKO8Ki:remove-unnecessary-stderr-files, r=Mark-Simulacrum 2022-08-20 19:32:09 +02:00
async-await Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
attributes Improve diagnostics for const a: = expr; 2022-08-05 16:19:28 +04:00
auto-traits Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
autoref-autoderef Filter OnceNote in diagnostic infra. 2022-03-20 20:36:26 +01:00
auxiliary Remove duplicated and unused test files 2022-03-28 10:16:32 -03:00
bench Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
binding Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
binop Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
blind Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
block-result Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
borrowck Rollup merge of #100507 - cameron1024:suggest-lazy, r=compiler-errors 2022-08-20 07:08:59 +02:00
box regression test for spurrious "help: store this in the heap" 2022-04-12 12:15:40 -07:00
btreemap Add PhantomData marker for dropck to BTreeMap 2022-07-18 13:03:54 +02:00
builtin-superkinds Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
c-variadic Adjust span of fn arguments 2022-08-12 15:21:39 +00:00
cast Only label place where type is needed if span is meaningful 2022-07-01 17:38:34 +00:00
cfg Do not consider method call receiver as an argument in AST. 2022-08-10 18:34:54 +02:00
chalkify Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
check-cfg Remove implicit names and values from --cfg in --check-cfg 2022-07-20 18:28:30 +02:00
closure-expected-type --bless tests 2022-07-28 20:15:24 +04:00
closure_context
closures Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
cmse-nonsecure short-circuit the easy cases in is_copy_modulo_regions 2022-03-10 01:19:02 -08:00
codegen Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
codemap_tests Mention first and last macro in backtrace 2022-07-19 03:07:54 +00:00
coercion Point out a single arg if we have a single arg incompatibility 2022-08-12 15:18:39 +00:00
coherence Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
command Revert "Do not call getpid wrapper after fork in tests" 2021-11-05 14:49:26 -07:00
compare-method Tweak assoc type obligation spans 2021-12-11 02:32:15 +00:00
conditional-compilation Conservatively report "not sure" in cfg_accessible 2022-06-03 11:31:11 +02:00
confuse-field-and-method Auto merge of #98816 - estebank:implicit-sized, r=oli-obk 2022-07-08 23:17:34 +00:00
const-generics Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
const-ptr interpret, ptr_offset_from: refactor and test too-far-apart check 2022-07-24 19:35:40 -04:00
const_prop separate const prop lint from optimizations 2022-03-23 16:50:41 +00:00
consts Rollup merge of #100507 - cameron1024:suggest-lazy, r=compiler-errors 2022-08-20 07:08:59 +02:00
crate-loading Improve suggestion for extern crate self error message 2021-12-01 21:59:54 +00:00
cross Mention first and last macro in backtrace 2022-07-19 03:07:54 +00:00
cross-crate Remove duplicated and unused test files 2022-03-28 10:16:32 -03:00
custom_test_frameworks Note concrete type being coerced into object 2022-06-28 21:56:18 +00:00
cycle-trait Generalize trait object generic param check to aliases. 2022-08-10 18:32:08 +02:00
debuginfo Auto merge of #95056 - Dylan-DPC:rollup-swtuw2n, r=Dylan-DPC 2022-03-18 00:35:19 +00:00
definition-reachable
dep-graph Reword comments and rename HIR visiting methods. 2022-07-07 16:01:43 +02:00
deprecation Use verbose help for deprecation suggestion 2022-06-29 09:53:15 +01:00
derived-errors
derives Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
deriving Auto merge of #98655 - nnethercote:dont-derive-PartialEq-ne, r=dtolnay 2022-08-18 10:11:11 +00:00
dest-prop
destructuring-assignment Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
diagnostic-width session: output-width -> diagnostic-width 2022-07-06 17:43:33 +01:00
did_you_mean recover require,include instead of use in item 2022-08-05 19:20:03 +08:00
directory_ownership Bless tests 2021-10-15 02:36:58 -05:00
disallowed-deconstructing
discrim
dollar-crate Bless tests 2021-10-15 02:36:58 -05:00
drop Do not allow Drop impl on foreign fundamental types 2022-08-16 00:59:06 +00:00
drop-bounds
dropck Do not allow Drop impl on foreign fundamental types 2022-08-16 00:59:06 +00:00
dst Remove even more box syntax uses from src/test 2022-08-07 04:22:20 +02:00
duplicate Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
dyn-drop
dyn-keyword diagnostics: fix trailing space 2022-06-16 14:40:28 +03:00
dynamically-sized-types Remove even more box syntax uses from src/test 2022-08-07 04:22:20 +02:00
editions Mention filename in suggestion when it differs from primary span 2022-06-01 09:52:03 -07:00
empty Be more precise when suggesting removal of parens on unit adt ctor 2022-07-16 22:15:41 +00:00
entry-point Revert "Auto merge of #93893 - oli-obk:sad_revert, r=oli-obk" 2022-03-28 16:27:14 +00:00
enum Further improve error message for E0081 2022-08-07 17:43:52 +02:00
enum-discriminant Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
error-codes Rollup merge of #99576 - compiler-errors:foreign-fundamental-drop-is-bad, r=TaKO8Ki 2022-08-19 12:26:38 +05:30
errors add suggestion when there is a impl of external trait on pointer 2022-07-27 21:53:37 +00:00
explicit Remove textual span from diagnostic string 2021-10-13 10:53:44 +00:00
expr Resolve vars before emitting coerce error 2022-08-04 03:05:57 +00:00
extenv Bless tests 2021-10-15 02:36:58 -05:00
extern Add regression test for #95829 2022-07-17 08:50:41 +09:00
extern-flag Use FxIndexMap instead of otherwise unused StableMap for WEAK_ITEMS_REFS. 2022-07-20 12:40:51 +02:00
feature-gates Stabilize #![feature(label_break_value)] 2022-08-23 21:14:12 -05:00
fmt Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
fn Point out a single arg if we have a single arg incompatibility 2022-08-12 15:18:39 +00:00
for Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
for-loop-while Stabilize #![feature(label_break_value)] 2022-08-23 21:14:12 -05:00
foreign Erase regions before comparing signatures of foreign fns. 2022-07-19 19:36:45 +02:00
fully-qualified-type On type mismatch caused by assignment, point at assignee 2021-11-25 18:04:33 +00:00
function-pointer Update the minimum external LLVM to 12 2021-10-22 10:50:07 -07:00
functional-struct-update
functions-closures Shorten span for closures. 2022-07-07 09:27:42 +02:00
generator Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
generic-associated-types Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
generics Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
half-open-range-patterns Be more hygenic with spans 2022-06-19 16:47:21 -07:00
hashmap fix one more case of trailing space 2022-06-16 14:40:29 +03:00
hello_world
higher-rank-trait-bounds Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
hr-subtype Fully stabilize NLL 2022-06-03 17:16:41 -04:00
hygiene Use the same message as type & const generics. 2022-06-03 08:26:10 +02:00
impl-header-lifetime-elision Check that we do not ICE when anonymous lifetimes appear in AnonConst. 2022-07-26 19:00:31 +02:00
impl-trait Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
implied-bounds Make same_type_modulo_infer a proper TypeRelation 2022-08-17 19:02:55 +00:00
imports add #[test] to functions in test modules 2022-07-08 10:16:28 +09:00
include-macros
incoherent-inherent-impls update error messages and explicitly mention them in tests 2022-05-05 14:29:24 +02:00
inference Normalize the arg spans to be within the call span 2022-07-20 21:09:19 +00:00
infinite Track implicit Sized obligations in type params 2022-07-07 12:15:12 -07:00
inherent-impls-overlap-check Deduplicate regions ids before merging them 2021-10-13 00:00:00 +00:00
inline-const feat: omit suffixes in const generics (e.g. 1_i32) 2022-07-19 02:35:48 +03:00
interior-mutability Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
internal Mention first and last macro in backtrace 2022-07-19 03:07:54 +00:00
intrinsics Point to argument if it's self type of unsatisfied projection predicate 2022-08-14 20:22:10 +00:00
invalid passes: port more of check_attr module 2022-07-25 15:11:22 +01:00
invalid-compile-flags Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
invalid-module-declaration
invalid-self-argument
issues Stabilize #![feature(label_break_value)] 2022-08-23 21:14:12 -05:00
iterators Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
json Move JSON tests into a directory. 2022-08-09 15:34:06 +10:00
keyword Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
kindck Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
label Stabilize #![feature(label_break_value)] 2022-08-23 21:14:12 -05:00
lang-items Add test for issue rust-lang/rust#83474 2022-04-05 21:45:07 -05:00
layout Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
lazy-type-alias-impl-trait Move Sized check before first error is created 2022-07-01 17:38:34 +00:00
let-else Add regression test for #94176 2022-08-12 10:03:57 +02:00
lexer Refer to the TraitRef::identity in the message to be clearer 2022-04-04 21:06:35 +00:00
lifetimes Use start_point instead of next_point to point to elided lifetime ampersand. 2022-08-07 14:35:11 +02:00
limits Remove even more box syntax uses from src/test 2022-08-07 04:22:20 +02:00
linkage-attr Fix linkage-attr/issue-10755.rs ui test on WSL 2022-07-27 14:59:30 +02:00
lint Stabilize #![feature(label_break_value)] 2022-08-23 21:14:12 -05:00
liveness Rollup merge of #98784 - compiler-errors:forgot-to-return-binding, r=estebank 2022-07-20 11:29:37 +05:30
loops Mention first and last macro in backtrace 2022-07-19 03:07:54 +00:00
lowering Avoid lowering a MacArgs::Eq twice. 2022-08-11 21:06:40 +10:00
lto Move tests 2022-06-13 17:16:01 -03:00
lub-glb remove unnecessary stderr files 2022-08-16 03:08:25 +09:00
macro_backtrace Mention first and last macro in backtrace 2022-07-19 03:07:54 +00:00
macros Stabilize #![feature(label_break_value)] 2022-08-23 21:14:12 -05:00
malformed Overhaul MacArgs::Eq. 2022-05-05 07:06:12 +10:00
manual Lib kind -l link-arg: 2022-07-26 13:55:27 +03:00
marker_trait_attr passes: migrate half of check_attr 2022-07-15 16:13:49 +01:00
match Remove even more box syntax uses from src/test 2022-08-07 04:22:20 +02:00
meta Fully stabilize NLL 2022-06-03 17:16:41 -04:00
methods Point out a single arg if we have a single arg incompatibility 2022-08-12 15:18:39 +00:00
mir Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
mir-dataflow Remove MaybeMutBorrowedLocals 2021-11-03 16:43:12 +01:00
mismatched_types Correct meaning of two UI tests 2022-08-16 01:22:21 +00:00
missing fix one more case of trailing space 2022-06-16 14:40:29 +03:00
missing-trait-bounds Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
missing_non_modrs_mod
modules Clarify error messages caused by re-exporting pub(crate) visibility to outside 2021-11-20 10:47:33 +09:00
modules_and_files_visibility
moves Improve cannot move out of error message 2022-07-31 21:06:43 +03:00
mut Implementation for 65853 2022-04-16 02:26:56 -04:00
namespace use named_span in case of tuple variant 2022-07-06 19:09:50 +09:00
native-library-link-flags Lib kind -l link-arg: 2022-07-26 13:55:27 +03:00
never_type Adjust wording 2022-08-08 00:13:41 +00:00
nll don't normalize wf predicates 2022-08-09 12:54:32 +02:00
non_modrs_mods
non_modrs_mods_and_inline_mods
not-panic Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
numbers-arithmetic use -Cstrip=debuginfo with ui tests to reduce disk space usage 2022-06-22 14:43:59 +03:00
numeric Implementation for 65853 2022-04-16 02:26:56 -04:00
object-lifetime Fully stabilize NLL 2022-06-03 17:16:41 -04:00
object-safety Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
obsolete-in-place
on-unimplemented Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
operator-recovery Recover on invalid operators <> and <=> 2021-12-14 18:05:02 +01:00
or-patterns Reenable early feature-gates as future-compat warnings 2022-08-17 06:53:18 -05:00
overloaded Move some tests to more reasonable places 2022-05-28 18:38:34 -03:00
packed Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
packed-struct
panic-handler Use FxIndexMap instead of otherwise unused StableMap for WEAK_ITEMS_REFS. 2022-07-20 12:40:51 +02:00
panic-runtime Fix test for non-prefer-dynamic target 2022-06-28 17:18:01 +01:00
panics location-detail: disable all location details when passed none 2022-07-28 09:45:59 -07:00
parser Stabilize #![feature(label_break_value)] 2022-08-23 21:14:12 -05:00
pattern Reenable early feature-gates as future-compat warnings 2022-08-17 06:53:18 -05:00
pin-macro Write {ui,} tests for pin_macro and pin! 2022-02-14 16:56:37 +01:00
polymorphization Shorten span for closures. 2022-07-07 09:27:42 +02:00
print-fuel
print_type_sizes print-type-sizes: skip field printing for primitives 2021-09-28 00:00:00 +00:00
privacy use par_for_each_in in par_body_owners and collect_crate_mono_items 2022-07-19 17:00:51 +08:00
proc-macro add regression test for #79148 2022-08-08 19:50:10 +09:00
process Fix process-spawn-nonexistent on WSL 2022-07-27 14:15:44 +02:00
process-termination
ptr_ops Update the minimum external LLVM to 13 2022-08-14 13:46:51 -07:00
pub Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
qualified use rustc_hir_pretty::qpath_to_string to avoid span_to_snippet when rendering path 2022-07-17 04:58:38 +00:00
query-system Add a regression test for issue-83479 2021-10-20 11:09:06 +09:00
range Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
raw-ref-op
reachable fix one more case of trailing space 2022-06-16 14:40:29 +03:00
recursion Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
recursion_limit Bless tests 2021-10-15 02:36:58 -05:00
regions ty::Error does not match other types for region constraints 2022-08-17 17:23:52 +00:00
repeat-expr use gathered body_owners in par_body_owners 2022-07-13 12:22:25 -04:00
repr Make item spans more consistent 2022-07-15 03:17:20 +00:00
reserved Improve suggestion for escaping reserved keywords 2022-01-27 14:53:39 -08:00
resolve Rollup merge of #100643 - TaKO8Ki:point-at-type-parameter-shadowing-another-type, r=estebank 2022-08-18 05:10:46 +02:00
return Eagerly replace {integer}/{float} with i32/f64 for suggestion 2022-03-27 02:20:16 +00:00
rfc-0107-bind-by-move-pattern-guards
rfc-1445-restrict-constants-in-patterns Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
rfc-1717-dllimport rustc: Stricter checking for #[link] attributes 2022-05-15 02:45:47 +03:00
rfc-1937-termination-trait Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
rfc-2005-default-binding-mode Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
rfc-2008-non-exhaustive Update error message to clarify that it's not the enum itself that's non_exhaustive 2022-08-10 10:02:03 -07:00
rfc-2027-object-safe-for-dispatch
rfc-2091-track-caller passes: migrate half of check_attr 2022-07-15 16:13:49 +01:00
rfc-2093-infer-outlives provide generic_param_scope for region errors 2022-07-15 16:53:20 +02:00
rfc-2126-crate-paths Cleanup feature gates. 2022-03-03 18:50:28 +01:00
rfc-2126-extern-absolute-paths
rfc-2294-if-let-guard Use expr parse restrictions for let expr parsing 2022-08-01 01:13:16 +00:00
rfc-2306
rfc-2361-dbg-macro Mention first and last macro in backtrace 2022-07-19 03:07:54 +00:00
rfc-2457 Practice diagnostic message convention 2021-10-03 16:16:28 +09:00
rfc-2497-if-let-chains Use expr parse restrictions for let expr parsing 2022-08-01 01:13:16 +00:00
rfc-2565-param-attrs Support the #[expect] attribute on fn parameters (RFC-2383) 2022-06-04 00:50:45 +02:00
rfc-2627-raw-dylib Add error if link_ordinal used without raw-dylib 2022-08-09 11:02:41 -07:00
rfc-2632-const-trait-impl Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
rfcs Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
rmeta Remove ignore-compare-mode-nll annotations from tests 2022-06-09 00:13:57 +09:00
runtime use -Cstrip=debuginfo with ui tests to reduce disk space usage 2022-06-22 14:43:59 +03:00
rust-2018 Track implicit Sized obligations in type params 2022-07-07 12:15:12 -07:00
rust-2021 diagnostics: fix trailing space 2022-06-16 14:40:28 +03:00
rustdoc Add items to DocAliasBadLocation check error match arm 2022-08-02 23:11:22 -04:00
sanitize adapt test for msan message change 2022-08-12 08:59:42 +00:00
save-analysis Remove ignore-compare-mode-nll annotations from tests 2022-06-09 00:13:57 +09:00
self Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
sepcomp Add needs-unwind to tests that depend on panicking 2021-12-09 22:03:52 +00:00
shadowed Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
simd Auto merge of #99491 - workingjubilee:sync-psimd, r=workingjubilee 2022-07-22 09:48:00 +00:00
single-use-lifetime diagnostics: fix trailing space 2022-06-16 14:40:28 +03:00
span Rollup merge of #100081 - RalfJung:unused-unsafe-in-unsafe-fn, r=jackh726 2022-08-19 12:26:40 +05:30
specialization Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
stability-attribute enum variant ctor inherits stability of variant 2022-08-12 15:15:36 +00:00
stack-protector add rustc option for using LLVM stack smash protection 2021-11-22 20:06:22 +01:00
static suggest lazy-static for non-const statics 2022-08-14 23:07:47 +01:00
statics Move item_span from check_item_type into each function 2022-07-15 03:17:21 +00:00
stats Box the MacCall in various types. 2022-08-17 08:10:56 +10:00
stdlib-unit-tests Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
str Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
structs Be more specific for what lifetimes are not allowed on 2022-06-19 18:08:29 -07:00
structs-enums Remove even more box syntax uses from src/test 2022-08-07 04:22:20 +02:00
suggestions Rollup merge of #100769 - TaKO8Ki:suggest-adding-reference-to-trait-assoc-item, r=cjgillot 2022-08-20 19:45:15 +02:00
svh Enable svh tests on msvc 2021-12-01 02:05:17 +00:00
symbol-names Bless tests. 2022-05-12 20:29:11 +02:00
target-feature passes: migrate half of check_attr 2022-07-15 16:13:49 +01:00
test-attrs Auto merge of #97853 - TaKO8Ki:emit-only-one-note-per-unused-struct-field, r=estebank 2022-06-22 02:51:55 +00:00
thread-local Rollup merge of #95006 - tmiasko:thread-local-static, r=wesleywiser 2022-04-16 19:42:02 +02:00
threads-sendsync Revert "add DefId to unsafety violations and display function path in E0133" 2022-04-26 14:49:28 +00:00
tool-attributes
trait-bounds Track implicit Sized obligations in type params 2022-07-07 12:15:12 -07:00
traits Rollup merge of #100796 - TaKO8Ki:remove-unnecessary-string-searching, r=compiler-errors 2022-08-20 19:45:17 +02:00
transmutability opt node type 2022-08-04 22:43:39 +00:00
transmute Make message for &T -> &mut T transmute more accurate 2022-01-09 23:31:57 +00:00
treat-err-as-bug
trivial-bounds diagnostics: fix trailing space 2022-06-16 14:40:28 +03:00
try-block Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
try-trait Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
tuple Rollup merge of #100479 - compiler-errors:argument-type-error-improvements, r=lcnr 2022-08-13 21:06:53 -07:00
type Adjust span of fn arguments 2022-08-12 15:21:39 +00:00
type-alias Don't suggest adding Self as a type parameter 2022-06-19 19:44:00 -07:00
type-alias-enum-variants Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
type-alias-impl-trait Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
type-inference use verbose suggestions 2022-06-02 10:19:15 +02:00
typeck Rollup merge of #100598 - ouz-a:91633, r=compiler-errors 2022-08-19 12:26:45 +05:30
typeof --bless tests 2022-04-10 16:45:09 +04:00
ufcs Implementation for 65853 2022-04-16 02:26:56 -04:00
unboxed-closures Fix error message with non-tupled bare fn trait 2022-08-16 01:21:11 +00:00
underscore-imports Make some tests check-pass 2022-05-28 18:57:02 +09:00
underscore-lifetime Report elision failures on the AST. 2022-07-25 19:19:23 +02:00
uniform-paths Add #[must_use] to remaining std functions (A-N) 2021-10-30 23:44:02 -04:00
uninhabited Tweak wording and spans 2022-07-07 12:25:56 -07:00
union Don't suggest field method if it's just missing some bounds 2022-08-03 07:01:49 +00:00
unique Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
unknown-unstable-lints Fix docs, fix incorrect lint source in note 2022-03-08 19:09:32 +00:00
unpretty Fix HIR pretty printing of let else 2022-08-12 02:47:57 +00:00
unresolved suggest extern crate foo when failing to resolve use foo 2022-05-25 09:58:19 +09:00
unsafe never consider unsafe blocks unused if they would be required with unsafe_op_in_unsafe_fn 2022-08-02 17:09:41 -04:00
unsized Remove deferred sized checks 2022-08-16 22:30:56 +00:00
unsized-locals Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
unused-crate-deps Add --json unused-externs-silent with original behaviour 2022-04-27 10:04:25 -07:00
unwind-abis Skip ffi-unwind lint test with -Cpanic=abort 2022-06-30 02:51:00 +01:00
use Mention first and last macro in backtrace 2022-07-19 03:07:54 +00:00
variance Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
variants
wasm rustc: Stricter checking for #[link] attributes 2022-05-15 02:45:47 +03:00
wf Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
where-clauses Fully stabilize NLL 2022-06-03 17:16:41 -04:00
xcrate Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
zero-sized
.gitattributes
alias-uninit-value.rs
align-with-extern-c-fn.rs Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
aligned_enum_cast.rs add asserts 2022-07-05 13:26:52 -04:00
anonymous-higher-ranked-lifetime.rs
anonymous-higher-ranked-lifetime.stderr --bless tests 2022-07-28 20:15:24 +04:00
artificial-block.rs
as-precedence.rs
assign-assign.rs
assign-imm-local-twice.rs
assign-imm-local-twice.stderr
assoc-inherent.rs
assoc-inherent.stderr
assoc-lang-items.rs
assoc-lang-items.stderr
assoc-oddities-3.rs
associated-path-shl.rs
associated-path-shl.stderr
atomic-from-mut-not-available.rs
atomic-from-mut-not-available.stderr
attempted-access-non-fatal.rs Extend invalid floating point literal suffix suggestion 2022-08-16 10:50:04 +08:00
attempted-access-non-fatal.stderr use proper words in help message for floating point 2022-08-16 19:12:36 +08:00
attr-bad-crate-attr.rc
attr-shebang.rs
attr-start.rs
attr-usage-inline.rs
attr-usage-inline.stderr
attrs-resolution-errors.rs
attrs-resolution-errors.stderr
attrs-resolution.rs
augmented-assignments-feature-gate-cross.rs
augmented-assignments-rpass.rs
augmented-assignments.rs
augmented-assignments.stderr
auto-instantiate.rs
auto-ref-slice-plus-ref.rs
auto-ref-slice-plus-ref.stderr
autoderef-full-lval.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
autoderef-full-lval.stderr
backtrace-apple-no-dsymutil.rs Stabilize backtrace 2022-08-02 16:21:20 -07:00
backtrace.rs Rollup merge of #98491 - antoyo:fix/ui-test-backtrace-panic-abort, r=Dylan-DPC 2022-06-26 13:15:00 +09:00
bare-fn-implements-fn-mut.rs
bare-static-string.rs
big-literals.rs
bind-by-move.rs
bitwise.rs
blind-item-local-shadow.rs
bogus-tag.rs
bogus-tag.stderr Track implicit Sized obligations in type params 2022-07-07 12:15:12 -07:00
borrow-by-val-method-receiver.rs
bounds-lifetime.rs
bounds-lifetime.stderr
break-diverging-value.rs
break-diverging-value.stderr
builtin-clone-unwind.rs Add needs-unwind to tests that depend on panicking 2021-12-09 22:03:52 +00:00
by-move-pattern-binding.rs
by-move-pattern-binding.stderr
can-copy-pod.rs
cancel-clean-via-immediate-rvalue-ref.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
cannot-mutate-captured-non-mut-var.rs
cannot-mutate-captured-non-mut-var.stderr Use larger span for adjustments on method calls 2021-09-25 10:00:41 -05:00
capture1.rs
capture1.stderr
catch-unwind-bang.rs Add needs-unwind to tests that depend on panicking 2021-12-09 22:03:52 +00:00
cenum_impl_drop_cast.rs
cenum_impl_drop_cast.stderr make cenum_impl_drop_cast deny-by-default and show up as future breakage diagnostic 2022-06-02 09:06:29 -04:00
cfguard-run.rs
char.rs
check-static-immutable-mut-slices.rs
check-static-immutable-mut-slices.stderr
check-static-recursion-foreign.rs
check-static-values-constraints.rs bless you 2022-02-12 19:24:41 +11:00
check-static-values-constraints.stderr suggest lazy-static for non-const statics 2022-08-14 23:07:47 +01:00
class-cast-to-trait.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
class-cast-to-trait.stderr
class-method-missing.rs
class-method-missing.stderr
cleanup-rvalue-for-scope.rs
cleanup-rvalue-scopes-cf.rs
cleanup-rvalue-scopes-cf.stderr Provide structured suggestion for dropped temp value 2022-07-15 11:04:45 -07:00
cleanup-rvalue-scopes.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
cleanup-rvalue-temp-during-incomplete-alloc.rs Add needs-unwind to tests that depend on panicking 2021-12-09 22:03:52 +00:00
cleanup-shortcircuit.rs
close-over-big-then-small-data.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
command-line-diagnostics.rs
command-line-diagnostics.stderr
commandline-argfile-badutf8.args
commandline-argfile-badutf8.rs
commandline-argfile-badutf8.stderr
commandline-argfile-missing.rs
commandline-argfile-missing.stderr
commandline-argfile.args
commandline-argfile.rs
compile_error_macro.rs
compile_error_macro.stderr Bless tests 2021-10-15 02:36:58 -05:00
complex.rs
conflicting-repr-hints.rs
conflicting-repr-hints.stderr Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
conservative_impl_trait.rs Revert diagnostic duplication and accidental stabilization 2022-04-28 13:25:36 +00:00
conservative_impl_trait.stderr Revert diagnostic duplication and accidental stabilization 2022-04-28 13:25:36 +00:00
constructor-lifetime-args.rs
constructor-lifetime-args.stderr
copy-a-resource.rs
copy-a-resource.stderr Suggest expressions' fields even if they're not ADTs 2022-08-03 06:28:45 +00:00
crate-leading-sep.rs
crate-method-reexport-grrrrrrr.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
crate-name-attr-used.rs
crate-name-mismatch.rs
crate-name-mismatch.stderr
custom-attribute-multisegment.rs
custom-attribute-multisegment.stderr
custom-test-frameworks-simple.rs
custom_attribute.rs
custom_attribute.stderr
deduplicate-diagnostics.deduplicate.stderr
deduplicate-diagnostics.duplicate.stderr
deduplicate-diagnostics.rs
deep.rs
default-method-parsing.rs
default-method-simple.rs
defaults-well-formedness.rs
deprecation-in-force-unstable.rs
deref-non-pointer.rs
deref-non-pointer.stderr
deref-rc.rs
deref.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
derive-uninhabited-enum-38885.rs collapse dead code warnings into a single diagnostic 2022-06-19 18:32:56 +09:00
derive-uninhabited-enum-38885.stderr Uniform spans in dead code lint. 2022-06-22 20:40:42 +02:00
destructure-trait-ref.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
destructure-trait-ref.stderr bless clippy tests 2022-06-16 15:51:12 +03:00
disambiguate-identical-names.rs
disambiguate-identical-names.stderr Implementation for 65853 2022-04-16 02:26:56 -04:00
diverging-fallback-method-chain.rs
diverging-fallback-option.rs
diverging-fn-tail-35849.rs
diverging-fn-tail-35849.stderr
does-nothing.rs
does-nothing.stderr
dont-suggest-private-trait-method.rs
dont-suggest-private-trait-method.stderr Track implicit Sized obligations in type params 2022-07-07 12:15:12 -07:00
double-ref.rs
double-type-import.rs
double-type-import.stderr
dupe-first-attr.rc
duplicate_entry_error.rs
duplicate_entry_error.stderr
early-ret-binop-add.rs
elide-errors-on-mismatched-tuple.rs
elide-errors-on-mismatched-tuple.stderr
elided-test.rs
elided-test.stderr Do not point at whole file missing fn main 2022-03-05 02:42:55 +00:00
else-if.rs
empty-allocation-non-null.rs
empty-allocation-rvalue-non-null.rs
empty-type-parameter-list.rs
empty_global_asm.rs Fix unused import in test 2021-12-12 21:11:15 +00:00
env-args-reverse-iterator.rs
env-funky-keys.rs
env-null-vars.rs
env-vars.rs
error-festival.rs
error-festival.stderr Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
error-should-say-copy-not-pod.rs
error-should-say-copy-not-pod.stderr
exclusive-drop-and-copy.rs
exclusive-drop-and-copy.stderr macros: support translatable labels 2022-04-05 07:01:03 +01:00
exec-env.rs
explain.rs
explain.stdout
explicit-i-suffix.rs
explore-issue-38412.rs Cleanup feature gates. 2022-03-03 18:50:28 +01:00
explore-issue-38412.stderr Cleanup feature gates. 2022-03-03 18:50:28 +01:00
expr-block-fn.rs
expr-block-generic-unique1.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
expr-block-generic-unique2.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
expr-block-generic.rs
expr-block.rs
expr-copy.rs
expr-if-generic.rs
expr-if-panic-all.rs
expr-if-unique.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
expr-scope.rs
ext-expand-inner-exprs.rs
ext-nonexistent.rs
ext-nonexistent.stderr
extoption_env-no-args.rs
extoption_env-no-args.stderr Bless tests 2021-10-15 02:36:58 -05:00
extoption_env-not-defined.rs
extoption_env-not-string-literal.rs
extoption_env-not-string-literal.stderr
extoption_env-too-many-args.rs
extoption_env-too-many-args.stderr Bless tests 2021-10-15 02:36:58 -05:00
fact.rs
fail-simple.rs
fail-simple.stderr
ffi_const.rs
ffi_const.stderr
ffi_const2.rs
ffi_const2.stderr
ffi_pure.rs
ffi_pure.stderr
ffi_returns_twice.rs
ffi_returns_twice.stderr
filter-block-view-items.rs
fn-in-pat.rs
fn-in-pat.stderr
foreign-fn-return-lifetime.fixed
foreign-fn-return-lifetime.rs
foreign-fn-return-lifetime.stderr Report elision failures on the AST. 2022-07-25 19:19:23 +02:00
foreign-unsafe-fn-called.mir.stderr Revert "add DefId to unsafety violations and display function path in E0133" 2022-04-26 14:49:28 +00:00
foreign-unsafe-fn-called.rs Revert "add DefId to unsafety violations and display function path in E0133" 2022-04-26 14:49:28 +00:00
foreign-unsafe-fn-called.thir.stderr only show a simple description in E0133 span label 2022-04-24 18:33:07 +02:00
format-no-std.rs
fun-indirect-call.rs
future-incompatible-lint-group.rs
future-incompatible-lint-group.stderr passes: migrate half of check_attr 2022-07-15 16:13:49 +01:00
global-scope.rs
hello.rs Create 2024 edition 2022-04-02 02:45:49 -04:00
higher-lifetime-bounds.rs
higher-lifetime-bounds.stderr
illegal-ufcs-drop.fixed
illegal-ufcs-drop.rs
illegal-ufcs-drop.stderr
impl-duplicate-methods.rs
impl-duplicate-methods.stderr Bless ui tests. 2022-06-24 17:57:27 +02:00
impl-inherent-non-conflict.rs
impl-not-adjacent-to-type.rs
impl-privacy-xc-1.rs
impl-unused-rps-in-assoc-type.rs
impl-unused-rps-in-assoc-type.stderr
impl-unused-tps-inherent.rs
impl-unused-tps-inherent.stderr
impl-unused-tps.rs
impl-unused-tps.stderr
implicit-method-bind.rs
implicit-method-bind.stderr
impossible_range.fixed
impossible_range.rs
impossible_range.stderr
inc-range-pat.rs
index-bot.rs
index-bot.stderr
index-help.rs
index-help.stderr Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
index_message.rs
index_message.stderr
indexing-requires-a-uint.rs
indexing-requires-a-uint.stderr Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
infer-fn-tail-expr.rs
inherit-env.rs
inline-disallow-on-variant.rs
inline-disallow-on-variant.stderr
inlined-main.rs
inner-attrs-on-impl.rs
inner-module.rs
inner-static-type-parameter.rs
inner-static-type-parameter.stderr
inner-static.rs
integral-indexing.rs
integral-indexing.stderr Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
integral-variable-unification-error.rs On type mismatch caused by assignment, point at assignee 2021-11-25 18:04:33 +00:00
integral-variable-unification-error.stderr On type mismatch caused by assignment, point at assignee 2021-11-25 18:04:33 +00:00
intrinsics-always-extern.rs
intrinsics-always-extern.stderr
invalid_crate_type_syntax.rs
invalid_crate_type_syntax.stderr Move malformed attribute code to a function and fix inner attribute suggestion. 2021-09-25 08:11:10 -07:00
invalid_dispatch_from_dyn_impls.rs
invalid_dispatch_from_dyn_impls.stderr Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
issue-76387-llvm-miscompile.rs
issue-94866.rs Only omit trailing comma if block doesn't come from macro expansion 2022-06-19 16:46:37 -07:00
issue-94866.stderr Only omit trailing comma if block doesn't come from macro expansion 2022-06-19 16:46:37 -07:00
issues-71798.rs Revert diagnostic duplication and accidental stabilization 2022-04-28 13:25:36 +00:00
issues-71798.stderr Point at return expression for RPIT-related error 2022-06-21 18:23:37 -07:00
item-name-overload.rs
kinds-in-metadata.rs
kinds-of-primitive-impl.rs rework error messages for incorrect inherent impls 2022-03-30 11:23:58 +02:00
kinds-of-primitive-impl.stderr rework error messages for incorrect inherent impls 2022-03-30 11:23:58 +02:00
lambda-infer-unresolved.rs
last-use-in-block.rs
last-use-in-cap-clause.rs
last-use-is-capture.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
lazy-and-or.rs
lexical-scopes.rs
lexical-scopes.stderr point at a type parameter shadowing another type 2022-08-17 04:53:06 +09:00
lexical-scoping.rs
link-section.rs Make tidy check for magic numbers that spell things 2021-12-31 21:13:07 -08:00
lint-unknown-lints-at-crate-level.rs
list.rs Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
log-err-phi.rs
log-knows-the-names-of-variants.rs
log-poly.rs
logging-only-prints-once.rs
loud_ui.rs
macro-quote-test.rs
main-wrong-location.rs Do not point at whole file missing fn main 2022-03-05 02:42:55 +00:00
main-wrong-location.stderr optimize find_item to fetch Item only when needed 2022-05-13 11:46:05 -04:00
main-wrong-type.rs
main-wrong-type.stderr
max-min-classes.rs
maybe-bounds.rs
maybe-bounds.stderr
minus-string.rs
minus-string.stderr
mir-unpretty.rs
mir-unpretty.stderr
missing_debug_impls.rs
missing_debug_impls.stderr
mod-subitem-as-enum-variant.rs Make output more specific 2022-06-01 17:46:55 -07:00
mod-subitem-as-enum-variant.stderr Be more specific for what lifetimes are not allowed on 2022-06-19 18:08:29 -07:00
module-macro_use-arguments.rs
module-macro_use-arguments.stderr
monomorphize-abi-alignment.rs
msvc-data-only.rs
multibyte.rs
multiline-comment.rs
mut-function-arguments.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
mutexguard-sync.rs
mutexguard-sync.stderr Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
mutual-recursion-group.rs
nested-block-comment.rs
nested-cfg-attrs.rs
nested-cfg-attrs.stderr
nested-class.rs
nested-ty-params.rs
nested-ty-params.stderr
new-impl-syntax.rs
new-import-syntax.rs
new-style-constants.rs
new-unicode-escapes.rs
new-unsafe-pointers.rs
newlambdas.rs
newtype-polymorphic.rs
newtype.rs
no-capture-arc.rs
no-capture-arc.stderr Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
no-core-1.rs
no-core-2.rs
no-link-unknown-crate.rs
no-link-unknown-crate.stderr
no-patterns-in-args-2.rs
no-patterns-in-args-2.stderr
no-patterns-in-args-macro.rs
no-patterns-in-args-macro.stderr
no-patterns-in-args.rs
no-patterns-in-args.stderr
no-reuse-move-arc.rs
no-reuse-move-arc.stderr Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
no-send-res-ports.rs
no-send-res-ports.stderr Shorten span for closures. 2022-07-07 09:27:42 +02:00
no-warn-on-field-replace-issue-34101.rs
no_crate_type.rs
no_crate_type.stderr Move malformed attribute code to a function and fix inner attribute suggestion. 2021-09-25 08:11:10 -07:00
no_send-enum.rs
no_send-enum.stderr fix(rustc_typeck): report function argument errors on matching type 2021-10-25 12:23:52 -07:00
no_send-rc.rs
no_send-rc.stderr
no_share-enum.rs
no_share-enum.stderr fix(rustc_typeck): report function argument errors on matching type 2021-10-25 12:23:52 -07:00
no_share-struct.rs
no_share-struct.stderr
noexporttypeexe.rs
noexporttypeexe.stderr
non-constant-expr-for-arr-len.rs
non-constant-expr-for-arr-len.stderr
non-copyable-void.rs
non-copyable-void.stderr
non-fmt-panic.fixed Take in account the unreachable! macro in the non_fmt_panic lint 2022-01-31 17:09:31 +01:00
non-fmt-panic.rs Take in account the unreachable! macro in the non_fmt_panic lint 2022-01-31 17:09:31 +01:00
non-fmt-panic.stderr lint: port non-fmt-panic diagnostics 2022-06-30 08:59:21 +01:00
non-ice-error-on-worker-io-fail.rs
non-ice-error-on-worker-io-fail.stderr
noncopyable-class.rs
noncopyable-class.stderr Suggest expressions' fields even if they're not ADTs 2022-08-03 06:28:45 +00:00
nonscalar-cast.fixed
nonscalar-cast.rs
nonscalar-cast.stderr
not-clone-closure.rs
not-clone-closure.stderr Shorten span for closures. 2022-07-07 09:27:42 +02:00
not-copy-closure.rs
not-copy-closure.stderr Suggest function borrow ignoring needs_note 2022-03-28 22:27:07 -07:00
not-enough-arguments.rs
not-enough-arguments.stderr Make missing argument placeholder more obvious that it's a placeholder 2022-06-19 15:10:42 -07:00
nul-characters.rs
nullable-pointer-iotareduction.rs Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
nullable-pointer-size.rs
object-pointer-types.rs
object-pointer-types.stderr
objects-coerce-freeze-borrored.rs
occurs-check-2.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
occurs-check-2.stderr Deduplicate box deref and regular deref suggestions 2022-01-11 21:13:45 -08:00
occurs-check-3.rs
occurs-check-3.stderr
occurs-check.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
occurs-check.stderr Deduplicate box deref and regular deref suggestions 2022-01-11 21:13:45 -08:00
once-cant-call-twice-on-heap.rs Cleanup feature gates. 2022-03-03 18:50:28 +01:00
once-cant-call-twice-on-heap.stderr Cleanup feature gates. 2022-03-03 18:50:28 +01:00
oom_unwind.rs Restrict oom_unwind test to Linux 2022-03-05 16:16:51 +01:00
op-assign-builtins-by-ref.rs
opeq.rs
opt-in-copy.rs
opt-in-copy.stderr
optimization-fuel-0.rs Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
optimization-fuel-0.stderr
optimization-fuel-1.rs Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
optimization-fuel-1.stderr
optimization-remark.rs Update optimization remark test for LLVM 14 2022-02-16 21:15:30 +01:00
order-dependent-cast-inference.rs
order-dependent-cast-inference.stderr
orphan-check-diagnostics.rs
orphan-check-diagnostics.stderr
osx-frameworks.rs rustc: Stricter checking for #[link] attributes 2022-05-15 02:45:47 +03:00
osx-frameworks.stderr rustc: Stricter checking for #[link] attributes 2022-05-15 02:45:47 +03:00
out-pointer-aliasing.rs
output-slot-variants.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
output-type-mismatch.rs
output-type-mismatch.stderr On type mismatch caused by assignment, point at assignee 2021-11-25 18:04:33 +00:00
over-constrained-vregs.rs
panic-while-printing.rs Add needs-unwind directive to tests where necessary 2022-03-19 16:35:41 +01:00
panic_implementation-closures.rs
paren-span.rs
paren-span.stderr
partialeq_help.rs Handle empty where-clause better 2022-06-11 16:27:01 -07:00
partialeq_help.stderr Handle empty where-clause better 2022-06-11 16:27:01 -07:00
path-lookahead.fixed
path-lookahead.rs
path-lookahead.stderr diagnostics: fix trailing space 2022-06-16 14:40:28 +03:00
path.rs
paths-containing-nul.rs
phantom-auto-trait.rs
phantom-auto-trait.stderr Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
point-to-type-err-cause-on-impl-trait-return-2.rs
point-to-type-err-cause-on-impl-trait-return-2.stderr
pptypedef.rs
pptypedef.stderr
primitive-binop-lhs-mut.rs
print-stdout-eprint-stderr.rs
project-cache-issue-31849.rs
ptr-coercion-rpass.rs
ptr-coercion.rs
ptr-coercion.stderr
range_inclusive.rs Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
raw-str.rs
reachable-unnameable-type-alias.rs
realloc-16687.rs
reassign-ref-mut.rs
reassign-ref-mut.stderr
reexport-test-harness-main.rs
reify-intrinsic.rs
reify-intrinsic.stderr Resolve vars before emitting coerce error 2022-08-04 03:05:57 +00:00
remap-path-prefix.rs
remap-path-prefix.stderr
removing-extern-crate.fixed
removing-extern-crate.rs
removing-extern-crate.stderr
repr_c_int_align.rs
resource-assign-is-not-copy.rs
resource-destruct.rs
ret-bang.rs
ret-non-nil.rs
ret-non-nil.stderr
return-disjoint-regions.rs
return-disjoint-regions.stderr
return-nil.rs
rfc1623-2.rs Report elision failures on the AST. 2022-07-25 19:19:23 +02:00
rfc1623-2.stderr Report elision failures on the AST. 2022-07-25 19:19:23 +02:00
rfc1623.rs Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rfc1623.stderr ValuePairs::PolyTraitRefs should be called 'trait' 2022-06-11 16:25:35 -07:00
rustc-error.rs
rustc-error.stderr
rustc-rust-log.rs Remove comment saying that we don't build debug rustc in CI, since we do 2021-10-18 16:28:09 -07:00
seq-args.rs
seq-args.stderr
shadow-bool.rs
shadowed-use-visibility.rs
short-error-format.rs
short-error-format.stderr
simple_global_asm.rs Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
sized-borrowed-pointer.rs
sized-cycle-note.rs
sized-cycle-note.stderr Specialize suggestion for Option<T> 2022-03-31 08:04:53 -07:00
sized-owned-pointer.rs
slightly-nice-generic-literal-messages.rs
slightly-nice-generic-literal-messages.stderr Point (again) to more expressions with their type, even if not fully resolved 2022-03-27 02:20:17 +00:00
slowparse-bstring.rs
slowparse-string.rs
sse2.rs
stable-addr-of.rs
std-backtrace.rs Stabilize backtrace 2022-08-02 16:21:20 -07:00
std-uncopyable-atomics.rs
std-uncopyable-atomics.stderr
stdio-is-blocking.rs
stmt_expr_attrs_no_feature.rs
stmt_expr_attrs_no_feature.stderr
string-box-error.rs
struct-ctor-mangling.rs Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
super-at-top-level.rs
super-at-top-level.stderr
super-fast-paren-parsing.rs
super.rs
suppressed-error.rs
suppressed-error.stderr
svh-add-nothing.rs
swap-1.rs
swap-overlapping.rs
switched-expectations.rs
switched-expectations.stderr
syntax-extension-minor.rs
tag-that-dare-not-speak-its-name.rs
tag-that-dare-not-speak-its-name.stderr
tag-type-args.rs
tag-type-args.stderr
tag-variant-cast-non-nullary.fixed
tag-variant-cast-non-nullary.rs
tag-variant-cast-non-nullary.stderr
tail-call-arg-leak.rs
tail-cps.rs
tail-typeck.rs
tail-typeck.stderr
terr-in-field.rs
terr-in-field.stderr Implementation for 65853 2022-04-16 02:26:56 -04:00
terr-sorts.rs
terr-sorts.stderr Implementation for 65853 2022-04-16 02:26:56 -04:00
thir-tree.rs
thir-tree.stdout Override rustc version in ui and mir-opt tests to get stable hashes 2022-01-21 00:28:07 +01:00
thread-local-mutation.rs
thread-local-mutation.stderr
thread-local-static.rs
thread-local-static.stderr
tool_lints-fail.rs
tool_lints-fail.stderr
tool_lints-rpass.rs
tool_lints.rs
tool_lints.stderr
tool_lints_2018_preview.rs
trailing-comma.rs Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
trait-impl-bound-suggestions.fixed
trait-impl-bound-suggestions.rs
trait-impl-bound-suggestions.stderr
trait-method-number-parameters.rs
trait-method-number-parameters.stderr
transmute-equal-assoc-types.rs
transmute-equal-assoc-types.stderr
transmute-non-immediate-to-immediate.rs
trivial_casts-rpass.rs
try-from-int-error-partial-eq.rs
try-operator-hygiene.rs
try-operator.rs
tuple-index.rs
tydesc-name.rs
type-id-higher-rank-2.rs
type-namespace.rs
type-param-constraints.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
type-param.rs
type-ptr.rs
type-use-i1-versus-i8.rs
type_length_limit.polonius.stderr
type_length_limit.rs Specialize a few tests depending on opt-level. 2022-06-30 21:45:29 +02:00
type_length_limit.stderr use par_for_each_in in par_body_owners and collect_crate_mono_items 2022-07-19 17:00:51 +08:00
typeid-intrinsic.rs
typestate-multi-decl.rs
ufcs-polymorphic-paths.rs
ui-testing-optout.rs
ui-testing-optout.stderr
unconstrained-none.rs
unconstrained-none.stderr add new emit_inference_failure_err 2022-06-02 10:19:15 +02:00
unconstrained-ref.rs
unconstrained-ref.stderr add new emit_inference_failure_err 2022-06-02 10:19:15 +02:00
underscore-ident-matcher.rs
underscore-ident-matcher.stderr
underscore-lifetimes.rs
underscore-method-after-integer.rs
unevaluated_fixed_size_array_len.rs
unevaluated_fixed_size_array_len.stderr Mention implementers of unsatisfied trait 2022-04-04 21:01:42 +00:00
uninit-empty-types.rs
unique-object-noncopyable.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
unique-object-noncopyable.stderr Consider privacy more carefully when suggesting accessing fields 2022-08-03 06:51:26 +00:00
unique-pinned-nocopy.rs
unique-pinned-nocopy.stderr Consider privacy more carefully when suggesting accessing fields 2022-08-03 06:51:26 +00:00
unit.rs
unknown-language-item.rs
unknown-language-item.stderr
unknown-lint-tool-name.rs
unknown-lint-tool-name.stderr
unknown-llvm-arg.rs
unknown-llvm-arg.stderr
unknown-tool-name.rs
unknown-tool-name.stderr
unnamed_argument_mode.rs
unop-move-semantics.rs
unop-move-semantics.stderr Remove redundant logic to suggest as_ref 2022-06-28 22:34:13 +00:00
unop-neg-bool.rs
unop-neg-bool.stderr
unpretty-expr-fn-arg.rs
unpretty-expr-fn-arg.stdout Fix whitespace in pretty printed PatKind::Range 2021-12-29 13:02:14 -08:00
unreachable-code-1.rs
unreachable-code.rs
unsafe-fn-called-from-unsafe-blk.rs
unsafe-fn-called-from-unsafe-fn.rs
unsafe-pointer-assignability.rs
unsigned-literal-negation.rs
unsigned-literal-negation.stderr
unterminated-comment.rs
unterminated-comment.stderr
unterminated-nested-comment.rs improve diagnostics for unterminated nested block comment 2022-04-14 03:22:02 +09:00
unterminated-nested-comment.stderr refactor: change to use peekable 2022-04-14 21:18:27 +09:00
unused-move-capture.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
unused-move.rs Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
unwind-no-uwtable.rs
unwind-unique.rs Add needs-unwind to tests that depend on panicking 2021-12-09 22:03:52 +00:00
use-import-export.rs
use-keyword-2.rs
use-module-level-int-consts.rs
use-nested-groups.rs
use.rs
used.rs
used.stderr
user-defined-macro-rules.rs
using-target-feature-unstable.rs
usize-generic-argument-parent.rs Provide a segment res in more cases 2022-06-20 21:27:42 -07:00
usize-generic-argument-parent.stderr Provide a segment res in more cases 2022-06-20 21:27:42 -07:00
utf8-bom.rs
utf8_idents.rs
variance-intersection-of-ref-and-opt-ref.rs
variance-iterators-in-libcore.rs
wait-forked-but-failed-child.rs
walk-struct-literal-with.rs
walk-struct-literal-with.stderr Mention first and last macro in backtrace 2022-07-19 03:07:54 +00:00
wasm-custom-section-relocations.rs
wasm-custom-section-relocations.stderr Shorten def_span for more items. 2022-07-01 17:39:19 +02:00
weak-new-uninhabited-issue-48493.rs Add #[must_use] to alloc constructors 2021-10-10 02:19:30 -04:00
weird-exit-code.rs
weird-exprs.rs Add back thinking emoji 2022-05-21 00:38:37 +02:00
while-type-error.rs
while-type-error.stderr
windows-subsystem-invalid.rs
windows-subsystem-invalid.stderr
write-fmt-errors.rs
writing-to-immutable-vec.rs
writing-to-immutable-vec.stderr
wrong-hashset-issue-42918.rs
wrong-mul-method-signature.rs
wrong-mul-method-signature.stderr
wrong-ret-type.rs
wrong-ret-type.stderr
xc-private-method.rs
xc-private-method.stderr
xc-private-method2.rs
xc-private-method2.stderr
z-crate-attr.rs