zig/test/cases/compile_errors
Andrew Kelley 9be8a9000f Revert "implement @expect builtin (#19658)"
This reverts commit a7de02e052.

This did not implement the accepted proposal, and I did not sign off
on the changes. I would like a chance to review this, please.
2024-05-22 09:57:43 -07:00
..
async test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
stage1/obj test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
@embedFile_with_empty_path.zig fix @embedFile("") not giving a proper error 2023-07-21 23:39:42 +02:00
@errorCast_with_bad_type.zig Sema: check error union payload types in @errorCast 2024-03-28 15:39:47 +02:00
@export_with_undeclared_identifier.zig AstGen: fix @export with undeclared identifier crashing 2023-09-22 12:23:57 -07:00
@intCast_on_vec.zig test cases: @intCast on vector 2023-06-27 19:57:19 -04:00
@intFromPtr_with_bad_type.zig Sema: disallow @intFromPtr for comptime-only types 2023-10-17 20:05:55 +00:00
@trap_comptime_call.zig Revert "Sema: forbid @breakpoint from being called at comptime" 2023-12-11 12:24:15 -07:00
access_inactive_union_field_comptime.zig compiler: move unions into InternPool 2023-08-22 13:54:14 -07:00
access_invalid_typeInfo_decl.zig tests: translate-c and run-translated-c to the test harness 2023-10-17 11:55:17 +03:00
access_non-existent_member_of_error_set.zig stage2: pass most test cases under InternPool 2023-06-10 20:51:10 -07:00
accessing_runtime_parameter_from_outer_function.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
accessing_runtime_paramter_outside_function_scope.zig test: check compile errors when compilation has no errors 2023-11-19 00:12:43 +02:00
add_assign_on_undefined_value.zig
add_on_undefined_value.zig sema: fix safe integer arithmetic operations on undefined values 2024-01-16 16:27:31 -08:00
add_overflow_in_function_evaluation.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
add_sat_on_undefined_value.zig sema: fix safe integer arithmetic operations on undefined values 2024-01-16 16:27:31 -08:00
add_wrap_on_undefined_value.zig sema: fix safe integer arithmetic operations on undefined values 2024-01-16 16:27:31 -08:00
addition_with_non_numbers.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
address_of_number_literal.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
address_of_threadlocal_not_comptime_known.zig
align_n_expr_function_pointers_is_a_compile_error.zig
alignCast_expects_pointer_or_slice.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
alignment_of_enum_field_specified.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
alignOf_bad_type.zig
ambiguous_coercion_of_division_operands.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
ambiguous_decl_reference.zig
and_on_undefined_value.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
any_typed_null_to_any_typed_optional.zig
anytype_param_requires_comptime.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
array_access_of_non_array.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
array_access_of_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
array_access_of_undeclared_identifier.zig
array_access_with_non_integer_index.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
array_cat_invalid_elem.zig Sema: improve error location for array cat/mul 2023-11-30 13:15:40 +02:00
array_concatenation_with_wrong_type.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
array_in_c_exported_function.zig Sema: fix fn_proto_param LazySrcLoc resolution 2023-07-18 19:02:06 -07:00
array_init_generic_fn_with_inferred_error_set.zig Sema: fix printing of inferred error set of generic fn 2024-03-17 13:33:05 +02:00
array_init_invalid_elem_count.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
array_init_not_supported_on_result_type.zig Sema: fix source location for untyped array init with result type 2023-11-08 06:56:52 +00:00
array_mult_with_number_type.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
as_many_ptr_undefined.zig behavior: boolean vector with 2 or more elements 2023-06-27 19:57:23 -04:00
asm_at_compile_time.zig
asm_output_to_const.zig sema: forbid asm output to const locals 2024-01-12 16:23:42 -08:00
assign_inline_fn_to_non-comptime_var.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
assign_local_bad_coercion.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
assign_null_to_non-optional_pointer.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
assign_through_constant_pointer.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
assign_through_constant_slice.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
assign_to_constant_destructure.zig Sema: correctly make inferred allocs constant 2024-04-18 04:45:14 +00:00
assign_to_constant_field.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
assign_to_constant_variable.zig
assign_to_invalid_dereference.zig
assign_too_big_number_to_u16.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
assign_unreachable.zig
assigning_to_struct_or_union_fields_that_are_not_optionals_with_a_function_that_returns_an_optional.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
AstGen_comptime_known_struct_is_resolved_before_error.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
atomic_orderings_of_atomicStore_Acquire_or_AcqRel.zig std.builtin: make atomic order fields lowercase 2024-03-11 07:09:10 -07:00
atomic_orderings_of_cmpxchg-failure_stricter_than_success.zig std.builtin: make atomic order fields lowercase 2024-03-11 07:09:10 -07:00
atomic_orderings_of_cmpxchg-success_Monotonic_or_stricter.zig std.builtin: make atomic order fields lowercase 2024-03-11 07:09:10 -07:00
atomic_orderings_of_fence_Acquire_or_stricter.zig std.builtin: make atomic order fields lowercase 2024-03-11 07:09:10 -07:00
atomicrmw_with_bool_op_not_.Xchg.zig std.builtin: make atomic order fields lowercase 2024-03-11 07:09:10 -07:00
atomicrmw_with_enum_op_not_.Xchg.zig std.builtin: make atomic order fields lowercase 2024-03-11 07:09:10 -07:00
atomicrmw_with_float_op_not_.Xchg_.Add_.Sub_.Max_or_.Min.zig std.builtin: make atomic order fields lowercase 2024-03-11 07:09:10 -07:00
attempt_to_cast_enum_literal_to_error.zig
attempt_to_close_over_comptime_variable_from_outer_scope.zig
attempt_to_create_17_bit_float_type.zig
attempt_to_negate_a_non-integer_non-float_or_non-vector_type.zig
attempted_double_ampersand.zig
attempted_double_pipe_on_boolean_values.zig
attempted_implicit_cast_from_const_T_to_array_len_1_T.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
attempted_implicit_cast_from_const_T_to_sliceT.zig
attempted_implicit_cast_from_T_to_long_array_ptr.zig Add error for bad cast from *T to *[n]T 2023-03-16 13:00:36 +02:00
attempted_implicit_cast_from_T_to_slice_const_T.zig
bad_alignCast_at_comptime.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
bad_alignment_in_implicit_cast_from_array_pointer_to_slice.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
bad_alignment_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
bad_identifier_in_function_with_struct_defined_inside_function_which_references_local_const.zig
bad_import.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
bad_member_access_on_tuple.zig Sema: fix unwrapping null when reporting error on member access 2023-01-22 01:04:20 +02:00
bad_usage_of_call.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
bad_usingnamespace_transitive_failure.zig compiler: rework comptime pointer representation and access 2024-04-17 13:41:25 +01:00
binary_not_on_number_literal.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
binary_OR_operator_on_error_sets.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
bit_ptr_non_packed.zig compiler: rework comptime pointer representation and access 2024-04-17 13:41:25 +01:00
bit_shifting_only_works_on_integer_types.zig
bitCast_same_size_but_bit_count_mismatch.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
bitCast_to_enum_type.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
bitcast_undef.zig compiler: un-implement #19634 2024-04-17 13:41:25 +01:00
bitCast_with_different_sizes_inside_an_expression.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
bitsize_of_packed_struct_checks_backing_int_ty.zig
bogus_compile_var.zig Add struct declaration location to empty root struct field member error 2023-11-18 12:03:10 +00:00
bogus_method_call_on_slice.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
branch_in_comptime_only_scope_uses_condbr_inline.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
branch_on_undefined_value.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
break_void_result_location.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
builtin_call_with_invalid_param.zig Module: implement span for .call_arg of a @call 2023-08-09 10:09:17 -04:00
C_pointer_pointing_to_non_C_ABI_compatible_type_or_has_align_attr.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
C_pointer_to_anyopaque.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
c_pointer_to_void.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
call_assigned_to_constant.zig
call_from_naked_func.zig Sema: improve new error messages related to naked functions 2023-08-02 16:12:30 -07:00
call_optional_function.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
callconv_apcs_aapcs_aapcsvfp_on_unsupported_platform.zig
callconv_from_global_variable.zig
callconv_interrupt_on_unsupported_platform.zig
callconv_signal_on_unsupported_platform.zig
callconv_stdcall_fastcall_thiscall_on_unsupported_platform.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
callconv_vectorcall_on_unsupported_platform.zig
calling_function_with_naked_calling_convention.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
calling_var_args_extern_function_passing_array_instead_of_pointer.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
cannot_break_out_of_defer_expression.zig
cannot_continue_out_of_defer_expression.zig
capture_by_ref_if.zig AstGen: use correct token_src for switch, if and while exprs 2024-01-16 18:22:44 +02:00
capture_by_ref_if_err_switch.zig AstGen: use correct token_src for switch, if and while exprs 2024-01-16 18:22:44 +02:00
capture_by_ref_switch.zig AstGen: use correct token_src for switch, if and while exprs 2024-01-16 18:22:44 +02:00
capture_by_ref_while.zig riscv: add stage2_riscv to test matrix and bypass failing tests 2024-05-11 02:17:24 -07:00
cast_between_optional_T_where_T_is_not_a_pointer.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
cast_enum_literal_to_enum_but_it_doesnt_match.zig
cast_error_union_of_global_error_set_to_error_union_of_smaller_error_set.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
cast_global_error_set_to_error_set.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
cast_negative_integer_literal_to_usize.zig
cast_negative_value_to_unsigned_integer.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
cast_unreachable.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
cast_without_result_type.zig compiler: implement destructuring syntax 2023-09-15 11:33:53 -07:00
cast_without_result_type_due_to_anyopaque_pointer.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
cast_without_result_type_due_to_generic_parameter.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
casting_bit_offset_pointer_to_regular_pointer.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
catch_on_undefined_value.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
chained_comparison_operators.zig
cimport.zig
closure_get_depends_on_failed_decl.zig Prevent analysis of functions only referenced at comptime 2023-05-29 23:06:08 +01:00
closure_get_in_param_ty_instantiate_incorrectly.zig Sema: add "parameter type declared here" note to type coercion 2022-12-03 00:48:04 +02:00
cmpxchg_with_float.zig std.builtin: make atomic order fields lowercase 2024-03-11 07:09:10 -07:00
colliding_invalid_top_level_functions.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
combination_of_nosuspend_and_async.zig
compare_optional_to_non_optional_with_incomparable_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
comparing_a_non-optional_pointer_against_null.zig
comparing_against_undefined_produces_undefined_value.zig
comparison_operators_with_undefined_value.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
compile-time_division_by_zero.zig
compile-time_remainder_division_by_zero.zig
compile_error_in_struct_init_expression.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
compile_error_when_evaluating_return_type_of_inferred_error_set.zig
compile_log.zig cases: necessary changes from branch 2024-03-26 17:06:14 +00:00
compile_log_a_pointer_to_an_opaque_value.zig compiler: rework comptime pointer representation and access 2024-04-17 13:41:25 +01:00
compile_log_statement_inside_function_which_must_be_comptime_evaluated.zig stage2: pass most test cases under InternPool 2023-06-10 20:51:10 -07:00
compile_log_statement_warning_deduplication_in_generic_fn.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
compile_time_division_by_zero.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
compile_time_null_ptr_cast.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
compile_time_undef_ptr_cast.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
compileError_shows_traceback_of_references_that_caused_it.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
compileLog_of_tagged_enum_doesnt_crash_the_compiler.zig Prevent analysis of functions only referenced at comptime 2023-05-29 23:06:08 +01:00
comptime_arg_to_generic_fn_callee_error.zig Sema: fix error location on comptime arg to typed generic param 2023-02-01 20:50:43 +02:00
comptime_call_of_function_pointer.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
comptime_cast_enum_to_union_but_field_has_payload.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
comptime_continue_inside_runtime_catch.zig
comptime_continue_inside_runtime_if_bool.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
comptime_continue_inside_runtime_if_error.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
comptime_continue_inside_runtime_if_optional.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
comptime_continue_inside_runtime_orelse.zig
comptime_continue_inside_runtime_switch.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
comptime_continue_inside_runtime_while_bool.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
comptime_continue_inside_runtime_while_error.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
comptime_continue_inside_runtime_while_optional.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
comptime_continue_to_outer_inline_loop.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
comptime_decl_name_conflict_resolved.zig Zcu: rename implicitly-named decls to avoid overriding by explicit decls 2024-03-14 07:40:05 +00:00
comptime_err_ret_trace.zig Sema: implement comptime error return traces 2024-01-22 18:08:56 -08:00
comptime_if_inside_runtime_for.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
comptime_implicit_cast_f64_to_f32.zig Sema: implement missing stage1 errors 2022-12-14 14:08:21 +02:00
comptime_param_coersion.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
comptime_slice-sentinel_does_not_match_memory_at_target_index_terminated.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
comptime_slice-sentinel_does_not_match_memory_at_target_index_unterminated.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
comptime_slice-sentinel_does_not_match_target-sentinel.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
comptime_slice-sentinel_is_out_of_bounds_terminated.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
comptime_slice-sentinel_is_out_of_bounds_unterminated.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
comptime_slice_of_an_undefined_slice.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
comptime_slice_of_undefined_pointer_non-zero_len.zig
comptime_store_in_comptime_switch_in_runtime_if.zig std.builtin: rename Type.UnionField and Type.StructField's field_type to type 2022-12-17 14:11:33 +01:00
comptime_struct_field_no_init_value.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
comptime_try_non_error.zig Fix test case added in 6d7fb8f 2023-03-09 23:25:38 +02:00
comptime_unreachable.zig move stage2 compile errors out of special folder 2022-12-14 14:05:57 +02:00
comptime_var_referenced_at_runtime.zig compiler: implement analysis-local comptime-mutable memory 2024-03-25 14:49:41 +00:00
comptime_var_referenced_by_decl.zig compiler: implement analysis-local comptime-mutable memory 2024-03-25 14:49:41 +00:00
comptime_vector_overflow_shows_the_index.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
condition_comptime_reason_explained.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
const_is_a_statement_not_an_expression.zig
constant_inside_comptime_function_has_compile_error.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
container_init_with_non-type.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
control_flow_uses_comptime_var_at_runtime.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
decl_shadows_local.zig
declaration_between_fields.zig
declaration_with_same_name_as_primitive_must_use_special_syntax.zig
deduplicate_undeclared_identifier.zig
deref_on_undefined_value.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
deref_slice_and_get_len_field.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
dereference_an_array.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
dereference_anyopaque.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
dereference_slice.zig Prevent analysis of functions only referenced at comptime 2023-05-29 23:06:08 +01:00
dereference_unknown_length_pointer.zig
dereferencing_invalid_payload_ptr_at_comptime.zig compiler: rework comptime pointer representation and access 2024-04-17 13:41:25 +01:00
direct_struct_loop.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
directly_embedding_opaque_type_in_struct_and_union.zig Sema: add declared here notes in fail 2024-02-12 12:54:32 -08:00
disallow_coercion_from_non-null-terminated_pointer_to_null-terminated_pointer.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
discarded_array_bad_elem_type.zig AstGen: fix result locations for elements of typed array init 2023-06-26 16:20:33 -07:00
discarding_error_value.zig Sema: improve error set/union discard/ignore errors 2024-05-14 01:13:49 +09:00
div_assign_on_undefined_value.zig
div_on_undefined_value.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
div_overflow.zig
division_by_zero.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
double_pointer_to_anyopaque_pointer.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
duplicate-unused_labels.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
duplicate_boolean_switch_value.zig
duplicate_enum_field.zig AstGen: detect duplicate field names 2024-01-20 17:23:47 +00:00
duplicate_error_in_switch.zig
duplicate_error_value_in_error_set.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
duplicate_field_in_anonymous_struct_literal.zig AstGen: detect duplicate field names 2024-01-20 17:23:47 +00:00
duplicate_field_in_discarded_anon_init.zig AstGen: detect duplicate field names 2024-01-20 17:23:47 +00:00
duplicate_field_in_struct_value_expression.zig AstGen: detect duplicate field names 2024-01-20 17:23:47 +00:00
duplicate_struct_field.zig AstGen: detect duplicate field names 2024-01-20 17:23:47 +00:00
duplicate_union_field.zig AstGen: detect duplicate field names 2024-01-20 17:23:47 +00:00
embed_outside_package.zig move stage2 compile errors out of special folder 2022-12-14 14:05:57 +02:00
embedFile_with_bogus_file.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
empty_for_loop_body.zig
empty_if_body.zig
empty_switch_on_an_integer.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
empty_while_loop_body.zig
enum_backed_by_comptime_int_must_be_casted_from_comptime_value.zig Sema: fix casting runtime value to enum with comptime int tag type 2024-01-29 01:43:19 +02:00
enum_backed_by_comptime_int_must_be_comptime.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
enum_field_value_references_enum.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
enum_in_field_count_range_but_not_matching_tag.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
enum_value_already_taken.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
enum_with_declarations_unavailable_for_reify_type.zig test: check compile errors when compilation has no errors 2023-11-19 00:12:43 +02:00
enumFromInt_on_non-exhaustive_enums_checks_int_in_range.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
error_in_call_builtin_args.zig update usages of @call 2022-12-13 13:14:20 +02:00
error_in_comptime_call_in_container_level_initializer.zig Sema: implement comptime error return traces 2024-01-22 18:08:56 -08:00
error_in_struct_initializer_doesnt_crash_the_compiler.zig AstGen: detect duplicate field names 2024-01-20 17:23:47 +00:00
error_in_typeof_param.zig cases: modify error wording to match new errors 2023-08-10 10:00:37 +01:00
error_not_handled_in_switch.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
error_note_for_function_parameter_incompatibility.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
error_set_cannot_capture_by_reference.zig AstGen: add error message for capture error by ref in switch on error 2024-01-16 05:55:26 +01:00
error_set_membership.zig add test coverage for fixed bug. closes #5410 2023-02-19 21:18:27 -07:00
error_union_field_default_init.zig add tests for fixed stage1 bugs 2024-03-28 15:24:01 +02:00
error_union_operator_with_non_error_set_LHS.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
error_when_evaluating_return_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
errors_in_for_loop_bodies_are_propagated.zig
exact division failure.zig
exceeded_maximum_bit_width_of_integer.zig
expected_optional_type_got_container.zig Sema: add missing declared here note 2024-05-22 02:16:56 +09:00
expected_optional_type_in_for.zig test cases: expected optional type in for loop 2023-06-27 19:57:23 -04:00
explain_why_fn_is_called_at_comptime.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
explain_why_generic_fn_is_called_at_comptime.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
explicit_cast_float_literal_to_integer_when_there_is_a_fraction_component.zig
explicit_error_set_cast_known_at_comptime_violates_error_sets.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
explicitly_casting_non_tag_type_to_enum.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
export_function_with_comptime_parameter.zig Sema: fix fn_proto_param LazySrcLoc resolution 2023-07-18 19:02:06 -07:00
export_generic_function.zig Sema: fix fn_proto_param LazySrcLoc resolution 2023-07-18 19:02:06 -07:00
export_with_empty_name_string.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
exported_enum_without_explicit_integer_tag_type.zig Allow zero-sized fields in extern structs (#16404) 2023-07-29 12:45:01 -04:00
exporting_primitive_values.zig AstGen: compile-error on primitive value export 2023-03-04 22:52:57 +02:00
extern_function_pointer_mismatch.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
extern_function_with_comptime_parameter.zig Sema: fix fn_proto_param LazySrcLoc resolution 2023-07-18 19:02:06 -07:00
extern_function_with_unspecified_calling_convention.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
extern_struct_with_extern-compatible_but_inferred_integer_tag_type.zig Allow zero-sized fields in extern structs (#16404) 2023-07-29 12:45:01 -04:00
extern_struct_with_non-extern-compatible_integer_tag_type.zig Allow zero-sized fields in extern structs (#16404) 2023-07-29 12:45:01 -04:00
extern_union_field_missing_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
extern_union_given_enum_tag_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
extern_variable_has_no_type.zig
extern_variable_has_non_extern_type.zig Allow zero-sized fields in extern structs (#16404) 2023-07-29 12:45:01 -04:00
extra_comma_in_destructure.zig compiler: implement destructuring syntax 2023-09-15 11:33:53 -07:00
field_access_of_opaque_type.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
field_access_of_slices.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
field_access_of_unknown_length_pointer.zig
field_access_of_wrapped_type.zig Sema: improve error message of field access of wrapped type 2023-03-21 00:34:12 +02:00
field_type_supplied_in_an_enum.zig
fieldParentPtr-bad_field_name.zig Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00
fieldParentPtr-comptime_field_ptr_not_based_on_struct.zig Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00
fieldParentPtr-comptime_wrong_field_index.zig Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00
fieldParentPtr-field_pointer_is_not_pointer.zig Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00
fieldParentPtr-non_pointer.zig Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00
fieldParentPtr_on_comptime_field.zig Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00
file_level_struct_invalid_field_type.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
float exact division failure.zig
for.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
for_discard_unbounded.zig AstGen: add error for discard of unbounded counter 2023-02-18 19:17:21 -07:00
for_empty.zig AstGen: add error for discard of unbounded counter 2023-02-18 19:17:21 -07:00
for_extra_capture.zig drop for loop syntax upgrade mechanisms 2023-10-13 03:43:54 -07:00
for_extra_condition.zig AstGen: add error for discard of unbounded counter 2023-02-18 19:17:21 -07:00
for_invalid_ranges.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
for_loop_body_expression_ignored.zig Sema error: talk about discarding instead of suppressing 2024-05-14 01:13:48 +09:00
for_loop_break_value_ignored.zig fix broken test cases exposed by ec445fb6b8 2023-03-21 20:57:14 +02:00
for_loop_error_union.zig Add error hint when looping over ErrorUnion 2024-02-03 19:16:27 +00:00
for_unbounded.zig implement error for unbounded for loops 2023-02-18 19:20:19 -07:00
function-only_builtins_outside_function.zig Compiler: move checking function-scope-only builtins to AstGen 2023-11-25 17:29:07 +00:00
function_alignment_non_power_of_2.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
function_call_assigned_to_incorrect_type.zig compiler: rework comptime pointer representation and access 2024-04-17 13:41:25 +01:00
function_parameter_is_opaque.zig Type: remove arbitrary restrictions on param and return types 2023-06-20 21:51:01 -07:00
function_prototype_with_no_body.zig
function_ptr_alignment.zig AstGen: disallow alignment on function types 2024-03-17 03:06:17 +01:00
function_returning_opaque_type.zig Type: remove arbitrary restrictions on param and return types 2023-06-20 21:51:01 -07:00
function_type_coercion.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
function_type_named.zig
function_with_invalid_return_type.zig
function_with_non-extern_non-packed_enum_parameter.zig Allow zero-sized fields in extern structs (#16404) 2023-07-29 12:45:01 -04:00
function_with_non-extern_non-packed_struct_parameter.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
function_with_non-extern_non-packed_union_parameter.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
generic_function_call_assigned_to_incorrect_type.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
generic_function_instance_with_non-constant_expression.zig Sema: fix compile error source location regressions 2023-07-18 19:02:06 -07:00
generic_function_instantiation_inherits_parent_branch_quota.zig Sema: remove generic function from monomorphed_funcs on any error 2023-01-05 14:26:53 +02:00
generic_instantiation_failure.zig Sema error: talk about discarding instead of suppressing 2024-05-14 01:13:48 +09:00
generic_instantiation_failure_in_generic_function_return_type.zig std: remove meta.trait 2023-11-22 13:24:27 -05:00
generic_method_call_with_invalid_param.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
global_var_struct_init_in_comptim_block.zig
global_variable_alignment_non_power_of_2.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
global_variable_initializer_must_be_constant_expression.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
global_variable_stored_in_global_const.zig
hasDecl_with_non-container.zig
helpful_return_type_error_message.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
if_condition_is_bool_not_int.zig
ignored_assert-err-ok_return_value.zig Sema error: talk about discarding instead of suppressing 2024-05-14 01:13:48 +09:00
ignored_comptime_statement_value.zig Sema error: talk about discarding instead of suppressing 2024-05-14 01:13:48 +09:00
ignored_comptime_value.zig Sema error: talk about discarding instead of suppressing 2024-05-14 01:13:48 +09:00
ignored_deferred_function_call.zig Sema: improve error set/union discard/ignore errors 2024-05-14 01:13:49 +09:00
ignored_deferred_statement_value.zig Sema error: talk about discarding instead of suppressing 2024-05-14 01:13:48 +09:00
ignored_expression_in_while_continuation.zig Sema: improve error set/union discard/ignore errors 2024-05-14 01:13:49 +09:00
ignored_return_value.zig Sema error: talk about discarding instead of suppressing 2024-05-14 01:13:48 +09:00
ignored_statement_value.zig Sema error: talk about discarding instead of suppressing 2024-05-14 01:13:48 +09:00
illegal_comparison_of_types.zig Sema: add declared here notes in fail 2024-02-12 12:54:32 -08:00
implicit_array_ptr_cast_sentinel_mismatch.zig
implicit_cast_between_C_pointer_and_Zig_pointer-bad_const-align-child.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
implicit_cast_const_array_to_mutable_slice.zig cases: more test coverage 2022-12-21 23:34:29 +01:00
implicit_cast_from_array_to_mutable_slice.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
implicit_cast_from_f64_to_f32.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
implicit_cast_of_error_set_not_a_subset.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
implicit_cast_to_c_ptr_from_int.zig
implicit_casting_C_pointers_which_would_mess_up_null_semantics.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
implicit_casting_null_c_pointer_to_zig_pointer.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
implicit_dependency_on_libc.zig Sema: implement missing stage1 errors 2022-12-14 14:08:21 +02:00
implicit_semicolon-block_expr.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-block_statement.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-comptime_expression.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-comptime_statement.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-defer.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-for_expression.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-for_statement.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-if-else-if-else_expression.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-if-else-if-else_statement.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-if-else-if_expression.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-if-else-if_statement.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-if-else_expression.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-if-else_statement.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-if_expression.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-if_statement.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-test_expression.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-test_statement.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-while-continue_expression.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-while-continue_statement.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-while_expression.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicit_semicolon-while_statement.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
implicitly_casting_enum_to_tag_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
implicitly_increasing_pointer_alignment.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
implicitly_increasing_slice_alignment.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
import_of_missing_package.zig give modules friendly names for error reporting 2023-10-08 20:58:04 -07:00
import_outside_package.zig give modules friendly names for error reporting 2023-10-08 20:58:04 -07:00
import_outside_package_path.zig give modules friendly names for error reporting 2023-10-08 20:58:04 -07:00
incompatible sub-byte fields.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
incompatible_sentinels.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
incorrect_pointer_dereference_syntax.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
incorrect_return_type.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
incorrect_type_to_memset_memcpy.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
increase_pointer_alignment_in_ptrCast.zig AstGen: use RLS to infer the first argument of @fieldParentPtr 2024-03-30 20:50:48 -04:00
indexing_a_undefined_slice_at_comptime.zig Sema: implement missing stage1 errors 2022-12-14 14:08:21 +02:00
indexing_an_array_of_size_zero.zig
indexing_an_array_of_size_zero_with_runtime_index.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
indexing_non-tuple_struct.zig Sema: fix and improve errors for for loop objects and non-indexables 2023-05-06 09:32:34 +02:00
indexing_single-item_pointer.zig Sema: fix and improve errors for for loop objects and non-indexables 2023-05-06 09:32:34 +02:00
indirect_struct_loop.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
inferred_array_size_invalid_here.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
initializing_array_with_struct_syntax.zig
inline_call_runtime_value_to_comptime_param.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
inline_underscore_prong.zig
instantiating_an_undefined_value_for_an_invalid_struct_that_contains_itself.zig
instantiating_an_undefined_value_for_an_invalid_union_that_contains_itself.zig
int-float_conversion_to_comptime_int-float.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
int_from_enum_undefined.zig Sema: add declared here notes in fail 2024-02-12 12:54:32 -08:00
int_to_err_global_invalid_number.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
int_to_err_non_global_invalid_number.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
integer_cast_truncates_bits.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
integer_overflow_error.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
integer_underflow_error.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
intFromFloat_comptime_safety.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
intFromPtr_0_to_non_optional_pointer.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
invalid_address_space_coercion.zig Prevent analysis of functions only referenced at comptime 2023-05-29 23:06:08 +01:00
invalid_array_elem_ty.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
invalid_array_elem_type.zig Sema: validate array element types 2023-04-05 14:45:56 +03:00
invalid_assignments.zig
invalid_bit_pointer.zig Sema: rework @fieldParentPtr to accept a pointer type 2024-03-30 20:50:48 -04:00
invalid_break_expression.zig
invalid_builtin_fn.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
invalid_capture_type.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
invalid_cast_from_integral_type_to_enum.zig
invalid_coercion_in_aggregate_literal.zig AstGen: fix src loc for invalid coercions in tuple literals 2023-08-12 01:57:11 -04:00
invalid_coercion_in_labeled_break.zig AstGen: fix src loc for invalid coercion in breaks 2023-08-12 01:57:15 -04:00
invalid_compare_string.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
invalid_comparison_for_function_pointers.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
invalid_comptime_fields.zig
invalid_continue_expression.zig
invalid_decltest.zig AstGen: fix crash on invalid decltest 2023-01-30 15:20:16 +02:00
invalid_dependency_on_struct_size.zig Sema: add error for failed assumption about struct having runtime bits 2022-12-02 18:46:59 +02:00
invalid_deref_on_switch_target.zig Sema: add declared here notes in fail 2024-02-12 12:54:32 -08:00
invalid_destructure_astgen.zig compiler: implement destructuring syntax 2023-09-15 11:33:53 -07:00
invalid_destructure_sema.zig compiler: implement destructuring syntax 2023-09-15 11:33:53 -07:00
invalid_duplicate_test_decl_name.zig compiler: detect duplicate test names in AstGen 2024-03-14 07:40:05 +00:00
invalid_empty_unicode_escape.zig
invalid_error_union_payload_type.zig Sema: validate inferred error set payload type 2023-02-11 14:36:54 +02:00
invalid_exponent_in_float_literal-1.zig
invalid_exponent_in_float_literal-2.zig
invalid_extern_function_call.zig categorize behavior/bugs/<issueno>.zig tests 2024-01-06 16:49:41 -08:00
invalid_field_access_in_comptime.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
invalid_field_in_struct_value_expression.zig Sema: fix bad error location on field init with field access 2023-11-21 13:59:14 +02:00
invalid_float_casts.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
invalid_float_literal.zig
invalid_function_types.zig AstGen: disallow alignment on function types 2024-03-17 03:06:17 +01:00
invalid_identifiers.zig
invalid_if_expr_result_location_coercion.zig AstGen: fix src loc for invalid if expression rls coercions 2023-08-12 01:57:07 -04:00
invalid_inline_else_type.zig Sema: add declared here notes in fail 2024-02-12 12:54:32 -08:00
invalid_int_casts.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
invalid_legacy_unicode_escape.zig
invalid_member_of_builtin_enum.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
invalid_multiple_dereferences.zig Sema: add declared here notes in fail 2024-02-12 12:54:32 -08:00
invalid_non-exhaustive_enum_to_union.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
invalid_optional_payload_type.zig
invalid_optional_type_in_extern_struct.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
invalid_peer_type_resolution.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
invalid_pointer_for_var_type.zig update test-cases for new for loop syntax 2023-02-18 19:17:21 -07:00
invalid_pointer_keeps_address_space_when_taking_address_of_dereference.zig Prevent analysis of functions only referenced at comptime 2023-05-29 23:06:08 +01:00
invalid_pointer_syntax.zig
invalid_pointer_with_reify_type.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
invalid_shift_amount_error.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
invalid_store_to_comptime_field.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
invalid_struct_field.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
invalid_switch_expr_result_location_coercion.zig AstGen: fix src loc for invalid switch expression rls coercions 2023-08-12 02:22:26 -04:00
invalid_tag_capture.zig
invalid_tail_call.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
invalid_type.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
invalid_type_in_builtin_extern.zig Sema: fix @extern error on function pointer 2023-10-16 01:30:39 +00:00
invalid_type_used_in_array_type.zig
invalid_underscore_placement_in_float_literal-1.zig
invalid_underscore_placement_in_float_literal-2.zig
invalid_underscore_placement_in_float_literal-3.zig
invalid_underscore_placement_in_float_literal-4.zig
invalid_underscore_placement_in_float_literal-5.zig
invalid_underscore_placement_in_float_literal-6.zig
invalid_underscore_placement_in_float_literal-7.zig
invalid_underscore_placement_in_float_literal-9.zig
invalid_underscore_placement_in_float_literal-10.zig
invalid_underscore_placement_in_float_literal-11.zig
invalid_underscore_placement_in_float_literal-12.zig
invalid_underscore_placement_in_float_literal-13.zig
invalid_underscore_placement_in_float_literal-14.zig
invalid_underscore_placement_in_int_literal-1.zig
invalid_underscore_placement_in_int_literal-2.zig
invalid_underscore_placement_in_int_literal-3.zig
invalid_underscore_placement_in_int_literal-4.zig
invalid_variadic_function.zig Sema: infrastructure for supporting more than .C callconv for variadic functions 2023-07-08 18:05:03 -04:00
issue_2032_compile_diagnostic_string_for_top_level_decl_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
issue_3818_bitcast_from_parray-slice_to_u16.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
issue_4207_coerce_from_non-terminated-slice_to_terminated-pointer.zig Sema: implement missing stage1 errors 2022-12-14 14:08:21 +02:00
issue_5221_invalid_struct_init_type_referenced_by_typeInfo_and_passed_into_function.zig
Issue_5586_Make_unary_minus_for_unsigned_types_a_compile_error.zig std.meta: remove Vector (deprecated in 0.10) 2023-06-13 23:45:08 +06:00
issue_5618_coercion_of_optional_anyopaque_to_anyopaque_must_fail.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
Issue_6823_dont_allow_._to_be_followed_by_.zig
issue_7810-comptime_slice-len_increment_beyond_bounds.zig compiler: rework comptime pointer representation and access 2024-04-17 13:41:25 +01:00
issue_9346_return_outside_of_function_scope.zig
issue_15572_break_on_inline_while.zig module: return null if no candidate src 2023-05-11 11:21:44 +03:00
labeled_break_not_found.zig
labeled_continue_not_found.zig
lazy_pointer_with_undefined_element_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
leading_zero_in_integer.zig
len_access_on_array_many_ptr.zig Sema: allow ptr field access on pointer-to-array 2023-04-20 09:05:22 -07:00
load_too_many_bytes_from_comptime_reinterpreted_pointer.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
load_vector_pointer_with_unknown_runtime_index.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
local_shadows_global_that_occurs_later.zig
local_variable_redeclaration.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
local_variable_redeclares_parameter.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
local_variable_shadowing_global.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
locally_shadowing_a_primitive_type.zig
main_function_with_bogus_args_type.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
main_missing_name.zig
member_function_arg_mismatch.zig Zir: eliminate field_call_bind and field_call_bind_named 2023-05-20 12:27:48 -07:00
memset_no_length.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
method_call_on_error_union.zig Sema: suggest using try/catch/if on method call on error union 2024-05-14 01:13:49 +09:00
method_call_with_first_arg_type_primitive.zig Sema: improve error message when calling non-member function as method 2023-03-12 18:47:02 +02:00
method_call_with_first_arg_type_wrong_container.zig Sema: improve error message when calling non-member function as method 2023-03-12 18:47:02 +02:00
missing_boolean_switch_value.zig
missing_builtin_arg_in_initializer.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
missing_const_in_slice_with_nested_array_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
missing_digit_after_base.zig
missing_else_clause.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
missing_field_in_struct_value_expression.zig Sema: tuples have no names to be used for reporting errors in finishStructInit 2024-01-26 15:22:15 +02:00
missing_function_name.zig
missing_function_proto_name.zig AstGen: fix error on missing function prototype name 2023-09-05 20:00:19 +03:00
missing_main_fn_in_executable.zig std.start: remove event loop integration 2024-02-01 15:22:36 +02:00
missing_member_in_namespace_export.zig Sema: add missing failWithBadMemberAccess to zirExport 2022-11-29 21:44:08 +02:00
missing_param_name.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
missing_parameter_name.zig AstGen: improve error message for missing parameter name 2022-12-02 15:39:40 +02:00
missing_parameter_name_of_generic_function.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
missing_result_type_for_phi_node.zig Improve error messages for break type coercion 2023-03-21 15:09:42 +02:00
missing_struct_field_in_fn_called_at_comptime.zig
misspelled_type_with_pointer_only_reference.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
mod_assign_on_undefined_value.zig
mod_on_undefined_value.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
mul_overflow_in_function_evaluation.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
muladd_int_vector.zig Add a compiler error for @mulAdd with int vectors. 2023-06-13 10:45:57 -07:00
mult_assign_on_undefined_value.zig
mult_on_undefined_value.zig sema: fix safe integer arithmetic operations on undefined values 2024-01-16 16:27:31 -08:00
mult_sat_on_undefined_value.zig sema: fix safe integer arithmetic operations on undefined values 2024-01-16 16:27:31 -08:00
mult_wrap_on_undefined_value.zig sema: fix safe integer arithmetic operations on undefined values 2024-01-16 16:27:31 -08:00
multiple_function_definitions.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
negate_on_undefined_value.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
negation_overflow_in_function_evaluation.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
negative_zero_literal.zig AstGen: disallow '-0' integer literal 2023-08-21 11:47:31 +03:00
nested_error_set_mismatch.zig AstGen: add source location to certain const initializers 2023-06-25 12:00:48 -07:00
nested_generic_function_param_type_mismatch.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
nested_ptr_cast_bad_operand.zig AstGen: use RLS to infer the first argument of @fieldParentPtr 2024-03-30 20:50:48 -04:00
nested_vectors.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
never_inline_call_of_inline_fn_with_comptime_param.zig test cases: never-inline call of inline function with comptime parameter 2023-06-27 19:57:23 -04:00
no_else_prong_on_switch_on_global_error_set.zig
noalias_on_non_pointer_param.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
noalias_param_coersion.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
noinline_fn_cc_inline.zig
non-comptime-parameter-used-as-array-size.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
non-const_expression_function_call_with_struct_return_value_outside_function.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
non-const_expression_in_struct_literal_outside_function.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
non-const_switch_number_literal.zig
non-const_variables_of_things_that_require_const_variables.zig Sema: add declared here notes in fail 2024-02-12 12:54:32 -08:00
non-enum_tag_type_passed_to_union.zig
non-exhaustive_enum_field_non_final.zig
non-exhaustive_enum_marker_assigned_a_value.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
non-exhaustive_enum_specifies_every_value.zig
non-extern_function_with_var_args.zig
non-inline_for_loop_on_a_type_that_requires_comptime.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
non-integer_tag_type_to_automatic_union_enum.zig
non-integer_tag_type_to_enum.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
non-pure_function_returns_type.zig
non_comptime_param_in_comptime_function.zig do not enforce function parameters to be marked comptime if only called at comptime 2024-01-19 15:31:18 -08:00
non_constant_expression_in_array_size.zig cases: account for changed compile errors 2024-02-16 12:15:39 +00:00
non_error_sets_used_in_merge_error_sets_operator.zig
non_float_passed_to_intFromFloat.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
non_int_passed_to_floatFromInt.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
non_pointer_given_to_intFromPtr.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
non_void_error_union_payload_ignored.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
noreturn_builtins_divert_control_flow.zig make @trap return unreachable/noreturn (#15749) 2023-05-18 17:00:35 -04:00
noreturn_struct_field.zig Sema: improve struct/union field error locations 2023-01-05 13:11:36 +02:00
normal_string_with_newline.zig
not_an_enum_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
number_literal_bad_exponent.zig Fix parsing of hexadecimal literals 2023-05-07 08:05:53 +00:00
offsetOf-bad_field_name.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
offsetOf-non_struct.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
old_fn_ptr_in_extern_context.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
only_equality_binary_operator_allowed_for_error_sets.zig
only_untyped_undef_coerces_to_all_types.zig Sema: only untyped undefined should coerce to all types 2023-01-05 14:26:53 +02:00
opaque_type_with_field.zig
or_on_undefined_value.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
orelse_on_undefined_value.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
out_of_bounds_index.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
out_of_int_range_comptime_float_passed_to_intFromFloat.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
overflow_arithmetic_on_vector_with_undefined_elems.zig compiler: rework comptime pointer representation and access 2024-04-17 13:41:25 +01:00
overflow_in_enum_value_allocation.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
packed_struct_backing_int_wrong.zig
packed_struct_field_alignment_unavailable_for_reify_type.zig std.builtin: make container layout fields lowercase 2024-03-11 07:09:07 -07:00
packed_struct_with_fields_of_not_allowed_types.zig compiler: rework comptime pointer representation and access 2024-04-17 13:41:25 +01:00
packed_union_given_enum_tag_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
packed_union_with_automatic_layout_field.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
panic_called_at_compile_time.zig Revert "Sema: forbid @breakpoint from being called at comptime" 2023-12-11 12:24:15 -07:00
panic_has_source_location.zig Sema: provide source location when analyzing panic handler 2023-08-14 11:43:21 -07:00
parameter_redeclaration.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
parameter_shadowing_global.zig
pass_const_ptr_to_mutable_ptr_fn.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
passing_a_not-aligned-enough_pointer_to_cmpxchg.zig std.builtin: make atomic order fields lowercase 2024-03-11 07:09:10 -07:00
passing_an_under-aligned_function_pointer.zig AstGen: disallow alignment on function types 2024-03-17 03:06:17 +01:00
peer_cast_then_implicit_cast_const_pointer_to_mutable_C_pointer.zig
pointer_arithmetic_on_pointer-to-array.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
pointer_attributes_checked_when_coercing_pointer_to_anon_literal.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
pointer_exceeds_containing_value.zig compiler: rework comptime pointer representation and access 2024-04-17 13:41:25 +01:00
pointer_to_anyopaque_slice.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
pointer_to_noreturn.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
pointer_with_different_address_spaces.zig Prevent analysis of functions only referenced at comptime 2023-05-29 23:06:08 +01:00
pointers_with_different_address_spaces.zig Prevent analysis of functions only referenced at comptime 2023-05-29 23:06:08 +01:00
pointless discard.zig
popCount-non-integer.zig
primitives_take_precedence_over_declarations.zig
private_main_fn.zig std.start: remove event loop integration 2024-02-01 15:22:36 +02:00
ptr_coerced_to_slice.zig Sema: disallow C pointer to slice coercion 2023-08-21 11:31:22 -07:00
ptrCast_discards_const_qualifier.zig AstGen: use RLS to infer the first argument of @fieldParentPtr 2024-03-30 20:50:48 -04:00
ptrcast_to_non-pointer.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
ptrFromInt_non_ptr_type.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
ptrFromInt_with_misaligned_address.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
range_operator_in_switch_used_on_error_set.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
reading_past_end_of_pointer_casted_array.zig compiler: rework comptime pointer representation and access 2024-04-17 13:41:25 +01:00
reassign_to_array_parameter.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
reassign_to_slice_parameter.zig
reassign_to_struct_parameter.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
recursive_inline_fn.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
redefinition_of_enums.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
redefinition_of_global_variables.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
redefinition_of_struct.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
redundant_comptime_var.zig AstGen: add error for redundant comptime var in comptime scope (#18242) 2024-01-09 20:09:39 -05:00
redundant_inline.zig AstGen: add error for using inline loops in comptime only scopes 2023-12-08 16:54:32 -08:00
redundant_ptr_cast.zig cases: add tests for errors introduced by cast builtin result type inference 2023-06-25 13:28:32 +01:00
refer_to_the_type_of_a_generic_function.zig Sema: disallow call to undefined function 2023-11-23 02:08:15 +00:00
reference_to_const_data.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
referring_to_a_struct_that_is_invalid.zig
regression_test_2980_base_type_u32_is_not_type_checked_properly_when_assigning_a_value_within_a_struct.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
reified_enum_field_value_overflow.zig std.builtin: remove layout field from Type.Enum 2022-12-18 13:31:38 +01:00
reify_enum_with_duplicate_field.zig std.builtin: remove layout field from Type.Enum 2022-12-18 13:31:38 +01:00
reify_enum_with_duplicate_tag_value.zig std.builtin: remove layout field from Type.Enum 2022-12-18 13:31:38 +01:00
reify_struct.zig std.builtin: make container layout fields lowercase 2024-03-11 07:09:07 -07:00
reify_type.Fn_with_is_generic_true.zig AstGen: disallow alignment on function types 2024-03-17 03:06:17 +01:00
reify_type.Fn_with_is_var_args_true_and_non-C_callconv.zig AstGen: disallow alignment on function types 2024-03-17 03:06:17 +01:00
reify_type.Fn_with_return_type_null.zig AstGen: disallow alignment on function types 2024-03-17 03:06:17 +01:00
reify_type_for_exhaustive_enum_with_non-integer_tag_type.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
reify_type_for_exhaustive_enum_with_undefined_tag_type.zig cases: necessary changes from branch 2024-03-26 17:06:14 +00:00
reify_type_for_tagged_union_with_extra_enum_field.zig std.builtin: make container layout fields lowercase 2024-03-11 07:09:07 -07:00
reify_type_for_tagged_union_with_extra_union_field.zig std.builtin: make container layout fields lowercase 2024-03-11 07:09:07 -07:00
reify_type_for_tagged_union_with_no_enum_fields.zig std.builtin: make container layout fields lowercase 2024-03-11 07:09:07 -07:00
reify_type_for_tagged_union_with_no_union_fields.zig std.builtin: make container layout fields lowercase 2024-03-11 07:09:07 -07:00
reify_type_for_union_with_opaque_field.zig std.builtin: make container layout fields lowercase 2024-03-11 07:09:07 -07:00
reify_type_union_payload_is_undefined.zig cases: necessary changes from branch 2024-03-26 17:06:14 +00:00
reify_type_with_invalid_field_alignment.zig std.builtin: make container layout fields lowercase 2024-03-11 07:09:07 -07:00
reify_type_with_Type.Int.zig
reify_type_with_undefined.zig cases: necessary changes from branch 2024-03-26 17:06:14 +00:00
reify_typeOf_with_incompatible_arguments.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
reify_typeOf_with_no_arguments.zig
reject_extern_function_definitions_with_body.zig
reject_extern_variables_with_initializers.zig
repeated_invalid_field_access_to_generic_function_returning_type_crashes_compiler_2655.zig tests: translate-c and run-translated-c to the test harness 2023-10-17 11:55:17 +03:00
resolve_inferred_error_set_of_generic_fn.zig Sema: add error for resolving inferred error set of generic function 2023-05-11 17:23:06 +03:00
result_location_incompatibility_mismatching_handle_is_ptr.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
result_location_incompatibility_mismatching_handle_is_ptr_generic_call.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
return_from_defer_expression.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
return_from_naked_function.zig Sema: improve new error messages related to naked functions 2023-08-02 16:12:30 -07:00
return_incompatible_generic_struct.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
return_invalid_type_from_test.zig tests: translate-c and run-translated-c to the test harness 2023-10-17 11:55:17 +03:00
runtime_assignment_to_comptime_struct_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
runtime_assignment_to_comptime_union_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
runtime_cast_to_union_which_has_non-void_fields.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
runtime_condition_comptime_type_in_destructure.zig Sema: validate that runtime-known inferred alloc does not have comptime-only type 2024-02-19 21:48:50 +00:00
runtime_index_into_comptime_type_slice.zig re-enable test-cases and get them all passing 2023-03-15 10:48:14 -07:00
runtime_indexing_comptime_array.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
runtime_to_comptime_num.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
runtime_value_in_switch_prong.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
saturating_arithmetic_does_not_allow_floats.zig
saturating_shl_assign_does_not_allow_negative_rhs_at_comptime.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
saturating_shl_does_not_allow_negative_rhs_at_comptime.zig Sema: implement missing stage1 errors 2022-12-14 14:08:21 +02:00
self_referential_struct_requires_comptime.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
self_referential_union_requires_comptime.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
sema_src_used_after_inline_call.zig
setAlignStack_in_inline_function.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
setAlignStack_in_naked_function.zig
setAlignStack_set_twice.zig
setAlignStack_too_big.zig
setting_a_section_on_a_local_variable.zig
shift_amount_has_to_be_an_integer_type.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
shift_by_negative_comptime_integer.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
shift_on_type_with_non-power-of-two_size.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
shifting_RHS_is_log2_of_LHS_int_bit_width.zig
shifting_without_int_type_or_comptime_known.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
shlExact_shifts_out_1_bits.zig
shrExact_shifts_out_1_bits.zig
shuffle_with_selected_index_past_first_vector_length.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
signed_integer_division.zig
signed_integer_remainder_division.zig
sizeOf_bad_type.zig
slice_cannot_have_its_bytes_reinterpreted.zig compiler: rework comptime pointer representation and access 2024-04-17 13:41:25 +01:00
slice_end_index_undefined.zig error on undefined end index 2024-04-23 19:25:49 +03:00
slice_of_non_array_type.zig
slice_of_null_pointer.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
slice_of_single-item_pointer_bounds.zig update test case for new const/var compile error 2024-01-15 01:53:41 -07:00
slice_passed_as_array_init_type.zig
slice_passed_as_array_init_type_with_elems.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
slice_sentinel_mismatch-1.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
slice_sentinel_mismatch-2.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
slice_to_anyopaque_pointer.zig sema: add error for coercing a slice to an anyopaque pointer 2023-04-26 00:53:09 +03:00
slice_used_as_extern_fn_param.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
specify_enum_tag_type_that_is_too_small.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
specify_non-integer_enum_tag_type.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
splat_result_type_non_vector.zig compiler: fix crash on invalid result type for @splat 2023-08-09 19:46:58 +01:00
std.fmt_error_for_unused_arguments.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
store_to_comptime_var_through_call.zig Sema: catch runtime stores to comptime variables through calls 2024-02-09 13:51:51 -08:00
store_vector_pointer_with_unknown_runtime_index.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
struct_depends_on_itself_via_optional_field.zig
struct_depends_on_pointer_alignment.zig sema: analyze field init bodies in a second pass 2023-11-07 00:49:35 +00:00
struct_duplicate_field_name.zig AstGen: detect duplicate field names 2024-01-20 17:23:47 +00:00
struct_init_passed_to_type_param.zig Sema: add "parameter type declared here" note to type coercion 2022-12-03 00:48:04 +02:00
struct_init_syntax_for_array.zig
struct_type_mismatch_in_arg.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
struct_type_returned_from_non-generic_function.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
struct_with_declarations_unavailable_for_reify_type.zig test: check compile errors when compilation has no errors 2023-11-19 00:12:43 +02:00
struct_with_invalid_field.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
sub_assign_on_undefined_value.zig
sub_on_undefined_value.zig sema: fix safe integer arithmetic operations on undefined values 2024-01-16 16:27:31 -08:00
sub_overflow_in_function_evaluation.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
sub_sat_on_undefined_value.zig sema: fix safe integer arithmetic operations on undefined values 2024-01-16 16:27:31 -08:00
sub_wrap_on_undefined_value.zig sema: fix safe integer arithmetic operations on undefined values 2024-01-16 16:27:31 -08:00
suspend_inside_suspend_block.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_capture_incompatible_types.zig Preserve field alignment in union pointer captures 2024-02-08 23:49:03 +01:00
switch_expression-duplicate_enumeration_prong.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_expression-duplicate_enumeration_prong_when_else_present.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_expression-duplicate_error_prong.zig test: add tests for switch_block_err_union 2024-01-09 14:42:12 +11:00
switch_expression-duplicate_error_prong_when_else_present.zig test: add tests for switch_block_err_union 2024-01-09 14:42:12 +11:00
switch_expression-duplicate_or_overlapping_integer_value.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_expression-duplicate_type.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_expression-duplicate_type_struct_alias.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_expression-missing_enumeration_prong.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_expression-missing_error_prong.zig riscv: add stage2_riscv to test matrix and bypass failing tests 2024-05-11 02:17:24 -07:00
switch_expression-multiple_else_prongs.zig riscv: add stage2_riscv to test matrix and bypass failing tests 2024-05-11 02:17:24 -07:00
switch_expression-non_exhaustive_integer_prongs.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_expression-switch_on_pointer_type_with_no_else.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_expression-unreachable_else_prong_bool.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_expression-unreachable_else_prong_enum.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_expression-unreachable_else_prong_error.zig test: add tests for switch_block_err_union 2024-01-09 14:42:12 +11:00
switch_expression-unreachable_else_prong_range_i8.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_expression-unreachable_else_prong_range_u8.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_expression-unreachable_else_prong_u1.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_expression-unreachable_else_prong_u2.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
switch_on_enum_with_1_field_with_no_prongs.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
switch_on_error_union_discard.zig AstGen: add error message for capture error by ref in switch on error 2024-01-16 05:55:26 +01:00
switch_on_error_with_1_field_with_no_prongs.zig test: add tests for switch_block_err_union 2024-01-09 14:42:12 +11:00
switch_on_error_with_capture_by_reference.zig AstGen: add error message for capture error by ref in switch on error 2024-01-16 05:55:26 +01:00
switch_on_error_with_non_trivial_switch_operand.zig AstGen: properly handle ill-formed switch on error 2024-01-16 05:55:26 +01:00
switch_on_non_err_union.zig add type check to zirSwitchBlockErrUnion 2024-01-18 00:46:00 +00:00
switch_on_slice.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
switch_on_undefined_union.zig Sema: fix compile error for switching on undefined union 2024-02-26 16:51:37 -08:00
switch_on_union_with_no_attached_enum.zig Fix bad source locations in switch capture errors 2023-06-13 12:55:27 +01:00
switch_ranges_endpoints_are_validated.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
switch_with_overlapping_case_ranges.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
switching_with_exhaustive_enum_has___prong_.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
switching_with_non-exhaustive_enums.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
tag_capture_on_non_inline_prong.zig
tagName_on_invalid_value_of_non-exhaustive_enum.zig tests: translate-c and run-translated-c to the test harness 2023-10-17 11:55:17 +03:00
tagName_used_on_union_with_no_associated_enum_tag.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
take_slice_of_invalid_dereference.zig
threadlocal_qualifier_on_const.zig
too_big_packed_struct.zig
top_level_decl_dependency_loop.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
truncate_sign_mismatch.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
try_in_function_with_non_error_return_type.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
try_return.zig
tuple_declarations.zig AstGen: add note pointing to tuple field 2023-01-11 21:11:21 +02:00
tuple_init_edge_cases.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
tuple_ptr_to_mut_slice.zig move stage2 compile errors out of special folder 2022-12-14 14:05:57 +02:00
type_checking_function_pointers.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
type_error_in_implicit_return.zig Sema: improve error for mismatched type in implicit return 2022-12-03 00:48:03 +02:00
type_error_union_field_type.zig add tests for fixed stage1 bugs 2024-03-28 15:24:01 +02:00
type_mismatch_in_C_prototype_with_varargs.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
type_mismatch_with_tuple_concatenation.zig stage2: pass most test cases under InternPool 2023-06-10 20:51:10 -07:00
type_variables_must_be_constant.zig
unable_to_evaluate_comptime_expr.zig value: update isDeclRef for anonymous declarations 2023-11-21 13:21:32 +02:00
unable_to_evaluate_expr_inside_cimport.zig
undeclared_identifier.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
undeclared_identifier_error_should_mark_fn_as_impure.zig
undeclared_identifier_in_unanalyzed_branch.zig
undefined_as_field_type_is_rejected.zig Port some stage1 test cases to stage2 2023-03-20 19:55:50 -04:00
undefined_function_call.zig
undefined_value_call.zig Sema: disallow call to undefined function 2023-11-23 02:08:15 +00:00
underscore_is_not_a_declarable_symbol.zig
underscore_should_not_be_usable_inside_for.zig update test-cases for new for loop syntax 2023-02-18 19:17:21 -07:00
underscore_should_not_be_usable_inside_while.zig
underscore_should_not_be_usable_inside_while_else.zig
unhandled_enum_value_in_switch_with_enum_declared_in_other_file.zig Change math.Order order (#16356) 2023-07-09 01:22:52 -04:00
union_access_of_inactive_field.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
union_auto-enum_value_already_taken.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
union_calling_inactive_field_as_fn.zig Check for inactive union field when calling fn at comptime 2024-02-26 16:55:17 -08:00
union_depends_on_pointer_alignment.zig Add compile error test case for union layout depending on pointer alignment 2023-10-31 01:35:58 +00:00
union_duplicate_enum_field.zig AstGen: detect duplicate field names 2024-01-20 17:23:47 +00:00
union_duplicate_field_definition.zig AstGen: detect duplicate field names 2024-01-20 17:23:47 +00:00
union_enum_field_does_not_match_enum.zig Fix OOB when enum field out of order in different file 2024-02-03 19:52:05 +00:00
union_enum_field_missing.zig move stage2 compile errors out of special folder 2022-12-14 14:05:57 +02:00
union_extra_field.zig Fix OOB when enum field out of order in different file 2024-02-03 19:52:05 +00:00
union_fields_are_resolved_before_tag_type_is_needed.zig
union_init_with_non_type_as_first_param.zig Fixes wrong error location for unionInit when first parameter is not a type (#16384) 2023-07-11 23:35:50 -07:00
union_init_with_none_or_multiple_fields.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
union_init_with_struct_as_first_param.zig Fixes crash when a struct is given as the first parameter to the unionInit builtin (#16385) 2023-07-11 23:37:42 -07:00
union_noreturn_field_initialized.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
union_runtime_coercion_from_enum.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
union_with_specified_enum_omits_field.zig
union_with_too_small_explicit_signed_tag_type.zig Sema: implement missing stage1 errors 2022-12-14 14:08:21 +02:00
union_with_too_small_explicit_unsigned_tag_type.zig Sema: implement missing stage1 errors 2022-12-14 14:08:21 +02:00
unknown_length_pointer_to_opaque.zig
unreachable_code-double_break.zig
unreachable_code-nested_returns.zig
unreachable_code.zig
unreachable_else_prong_err_set.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
unreachable_executed_at_comptime.zig
unreachable_in_naked_func.zig Sema: improve new error messages related to naked functions 2023-08-02 16:12:30 -07:00
unreachable_parameter.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
unreachable_variable.zig
unreachable_with_return.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
unused_value_in_switch_in_loop.zig Improve error messages for break type coercion 2023-03-21 15:09:42 +02:00
unused_variable_error_on_errdefer.zig
use_anyopaque_as_return_type_of_fn_ptr.zig
use_implicit_casts_to_assign_null_to_non-nullable_pointer.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
use_invalid_number_literal_as_array_index.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
use_of_undeclared_identifier.zig
using_an_unknown_len_ptr_type_instead_of_array.zig
usingnamespace_with_wrong_type.zig
var_never_mutated.zig cases: add compile error test for never-mutated local variable 2023-11-19 11:11:50 +00:00
variable_has_wrong_type.zig
variable_initialization_compile_error_then_referenced.zig
variable_with_type_noreturn.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
variadic_arg_validation.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
vector_index_out_of_bounds.zig std.meta: remove Vector (deprecated in 0.10) 2023-06-13 23:45:08 +06:00
volatile_on_global_assembly.zig
wasmMemoryGrow_is_a_compile_error_in_non-Wasm_targets.zig
wasmMemorySize_is_a_compile_error_in_non-Wasm_targets.zig
while_expected_bool_got_error_union.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
while_expected_bool_got_optional.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
while_expected_error_union_got_bool.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
while_expected_error_union_got_optional.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
while_expected_optional_got_bool.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
while_expected_optional_got_error_union.zig Sema: add error note for !?Type types when optional type is expected 2024-05-14 01:13:49 +09:00
while_loop_body_expression_ignored.zig Sema error: talk about discarding instead of suppressing 2024-05-14 01:13:48 +09:00
while_loop_break_value_ignored.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
write_to_const_global_variable.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
wrong_function_type.zig write function types consistently with a space before fn keyword 2023-09-19 15:15:05 +03:00
wrong_initializer_for_union_payload_of_type_type.zig
wrong_number_of_arguments.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
wrong_number_of_arguments_for_method_fn_call.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
wrong_pointer_coerced_to_pointer_to_opaque_{}.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
wrong_size_to_an_array_literal.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
wrong_type_for_reify_type.zig
wrong_type_passed_to_panic.zig test: update cases to silence 'var is never mutated' errors 2023-11-19 09:56:51 +00:00
wrong_type_to_hasField.zig
wrong_types_given_to_atomic_order_args_in_cmpxchg.zig
wrong_types_given_to_export.zig compiler: preserve result type information through address-of operator 2023-09-23 22:01:08 +01:00
zero-bit_generic_args_are_coerced_to_param_type.zig cases: modify error wording to match new errors 2023-08-10 10:00:37 +01:00