mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 19:28:10 +00:00
Diagnostic rendering was part of the data model: `Loc::FormatLocation` and `Loc::FormatSnippet` wrote plain text to a stream, so no capability, color, or terminal width could reach them. A diagnostic is now one message with labels, contexts, and location information attached, and `Diagnostics::Renderer` draws it into a `Terminal::Buffer`. The design is in `toolchain/docs/diagnostics_rendering.md` (#7668), authoring in `toolchain/docs/diagnostics.md`. Before: ``` example.carbon:6:3: error: 1 argument passed to function expecting 0 arguments Run0(1); ^~~~~~~ example.carbon:3:1: note: calling function declared here fn Run0() {} ^~~~~~~~~~~ ``` After: ``` error: 1 argument passed to function expecting 0 arguments ╭─┤ example.carbon:6:3 ┆ 3 │ fn Run0() {} · ─────┬───── · ╰──┤ calling function declared here ┆ -> 6 │ Run0(1); · ─────── ╰──────────── ``` `--no-diagnostic-snippets` gives a compact form, `example.carbon:6:3-9`. File tests use it; the rendering tests under `toolchain/diagnostics/testdata` ask for snippets. C++ interop diagnostics are data now rather than text Clang drew: `SemIR::ClangSourceLocId` names a `clang::SourceRange`, and a Clang location is marked as the point it names. `StreamConsumer` moves to a `:renderer` target that `:emitter` does not depend on, keeping `common/terminal` out of `consumer.h`. Capabilities come from the file behind the error stream, so tests get plain ASCII. `renderer_fuzzer` draws diagnostics built from fuzzer bytes with every capability combination, since a shape the renderer doesn't expect must never be why the compiler dies while reporting a problem. TODOs mark the follow-ups: line weights and crossing lines, wrapping that keeps a quoted type whole, and ordering diagnostics that share a byte offset. Also: `IncorrectExtension`'s hint moves into its message, since its note had no location of its own, and `strip_noise` in `check_diagnostics.py` blanks multi-line `#define`s instead of deleting them. Assisted-by: Claude Code
576 lines
33 KiB
Plaintext
576 lines
33 KiB
Plaintext
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/none.carbon
|
|
//
|
|
// AUTOUPDATE
|
|
// TIP: To test this file alone, run:
|
|
// TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/impl/impl_assoc_const.carbon
|
|
// TIP: To dump output, run:
|
|
// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/impl/impl_assoc_const.carbon
|
|
|
|
// --- success.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface I { let T: type; }
|
|
|
|
impl () as I where .T = {} {}
|
|
|
|
// --- success_associated.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface I { let T: type; let U: type; }
|
|
|
|
impl () as I where .T = .U and .U = {} {}
|
|
|
|
// --- redecl.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface I2 { let T2: type; }
|
|
|
|
impl () as I2 where .T2 = {};
|
|
impl () as I2 where .T2 = {} {}
|
|
|
|
// --- fail_redecl_adds_rewrites.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface I3 { let T3: type; }
|
|
|
|
// CHECK:STDERR: fail_redecl_adds_rewrites.carbon:[[@LINE+2]]:1-14: error: impl declared but not defined [ImplMissingDefinition]
|
|
// CHECK:STDERR:
|
|
impl () as I3;
|
|
impl () as I3 where .T3 = {} {}
|
|
|
|
// --- fail_mismatch.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface J { let U: type; }
|
|
|
|
// CHECK:STDERR: fail_mismatch.carbon:[[@LINE+2]]:1-27: error: impl declared but not defined [ImplMissingDefinition]
|
|
// CHECK:STDERR:
|
|
impl () as J where .U = {};
|
|
impl () as J where .U = () {}
|
|
|
|
// --- fail_mismatch_bad_value.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface I4 {
|
|
let T4: type;
|
|
let T5: type;
|
|
let T6: type;
|
|
}
|
|
|
|
// CHECK:STDERR: fail_mismatch_bad_value.carbon:[[@LINE+4]]:27-30: error: name `BAD1` not found [NameNotFound]
|
|
// CHECK:STDERR:
|
|
// CHECK:STDERR: fail_mismatch_bad_value.carbon:[[@LINE+2]]:61-64: error: name `BAD2` not found [NameNotFound]
|
|
// CHECK:STDERR:
|
|
impl () as I4 where .T4 = BAD1 and .T5 = {.a: {}} and .T6 = BAD2;
|
|
|
|
// CHECK:STDERR: fail_mismatch_bad_value.carbon:[[@LINE+4]]:46-49: error: name `BAD3` not found [NameNotFound]
|
|
// CHECK:STDERR:
|
|
// CHECK:STDERR: fail_mismatch_bad_value.carbon:[[@LINE+2]]:61-64: error: name `BAD4` not found [NameNotFound]
|
|
// CHECK:STDERR:
|
|
impl () as I4 where .T4 = {.b: {}} and .T5 = BAD3 and .T6 = BAD4 {}
|
|
|
|
// --- fail_missing_on_definition.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface K { let V: type; }
|
|
|
|
impl () as K where .V = {};
|
|
// CHECK:STDERR: fail_missing_on_definition.carbon:[[@LINE+5]]:1-14: error: associated constant V not given a value in impl of interface K [ImplAssociatedConstantNeedsValue]
|
|
// CHECK:STDERR: fail_missing_on_definition.carbon:[[@LINE-4]]:19-25: note: associated constant declared here [AssociatedConstantHere]
|
|
// CHECK:STDERR:
|
|
// CHECK:STDERR: fail_missing_on_definition.carbon:[[@LINE-4]]:1-27: error: impl declared but not defined [ImplMissingDefinition]
|
|
// CHECK:STDERR:
|
|
impl () as K {}
|
|
|
|
// --- fail_two_different.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface L { let W: type; }
|
|
|
|
// CHECK:STDERR: fail_two_different.carbon:[[@LINE+2]]:12-38: error: associated constant `.(L.W)` given two different values `{}` and `()` [AssociatedConstantWithDifferentValues]
|
|
// CHECK:STDERR:
|
|
impl () as L where .W = {} and .W = () {}
|
|
|
|
// --- fail_two_different_first_associated.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface L2 { let W2: type; let X2: type; }
|
|
|
|
// CHECK:STDERR: fail_two_different_first_associated.carbon:[[@LINE+2]]:12-42: error: associated constant `.(L2.W2)` given two different values `()` and `.(L2.X2)` [AssociatedConstantWithDifferentValues]
|
|
// CHECK:STDERR:
|
|
impl () as L2 where .W2 = .X2 and .W2 = () {}
|
|
|
|
// --- fail_two_different_second_associated.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface L2 { let W2: type; let X2: type; }
|
|
|
|
// CHECK:STDERR: fail_two_different_second_associated.carbon:[[@LINE+2]]:12-42: error: associated constant `.(L2.W2)` given two different values `()` and `.(L2.X2)` [AssociatedConstantWithDifferentValues]
|
|
// CHECK:STDERR:
|
|
impl () as L2 where .W2 = () and .W2 = .X2 {}
|
|
|
|
// --- fail_two_different_first_bad.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface L2 { let W2: type; }
|
|
|
|
// CHECK:STDERR: fail_two_different_first_bad.carbon:[[@LINE+2]]:27-30: error: name `BAD5` not found [NameNotFound]
|
|
// CHECK:STDERR:
|
|
impl () as L2 where .W2 = BAD5 and .W2 = () {}
|
|
|
|
// --- fail_two_different_second_bad.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface L3 { let W3: type; }
|
|
|
|
// CHECK:STDERR: fail_two_different_second_bad.carbon:[[@LINE+2]]:40-43: error: name `BAD6` not found [NameNotFound]
|
|
// CHECK:STDERR:
|
|
impl () as L3 where .W3 = {} and .W3 = BAD6 {}
|
|
|
|
// --- fail_two_different_both_bad.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface L4 { let W4: type; }
|
|
|
|
// CHECK:STDERR: fail_two_different_both_bad.carbon:[[@LINE+4]]:27-30: error: name `BAD7` not found [NameNotFound]
|
|
// CHECK:STDERR:
|
|
// CHECK:STDERR: fail_two_different_both_bad.carbon:[[@LINE+2]]:42-45: error: name `BAD8` not found [NameNotFound]
|
|
// CHECK:STDERR:
|
|
impl () as L4 where .W4 = BAD7 and .W4 = BAD8 {}
|
|
|
|
// --- fail_many_different.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface L { let W: type; }
|
|
|
|
// The facet type should have a single rewrite with `<error>` in the RHS (they
|
|
// are all errors, and they get deduped).
|
|
//
|
|
//@dump-sem-ir-begin
|
|
// CHECK:STDERR: fail_many_different.carbon:[[@LINE+2]]:12-102: error: associated constant `.(L.W)` given two different values `((), (), ())` and `({}, (), ())` [AssociatedConstantWithDifferentValues]
|
|
// CHECK:STDERR:
|
|
impl () as L where .W = ((), (), ()) and .W = ({}, (), ()) and .W = ({}, {}, ()) and .W = ({}, (), {}) {}
|
|
//@dump-sem-ir-end
|
|
|
|
// --- repeated.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface M { let X: type; }
|
|
|
|
impl () as M where .X = {} and .X = {} {}
|
|
|
|
// --- repeated_associated.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface M { let X: type; let Y: type; }
|
|
|
|
impl () as M where .X = .Y and .X = .Y and .Y = () {}
|
|
|
|
// --- repeated_concrete_value_and_associated.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface M { let X: type; let Y: type; }
|
|
|
|
impl () as M where .X = () and .Y = .X and .X = .Y {}
|
|
|
|
impl {} as M where .X = () and .X = .X and .Y = () {}
|
|
|
|
// --- fail_repeated_and_different.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface M { let X: type; }
|
|
|
|
// CHECK:STDERR: fail_repeated_and_different.carbon:[[@LINE+2]]:12-50: error: associated constant `.(M.X)` given two different values `{}` and `()` [AssociatedConstantWithDifferentValues]
|
|
// CHECK:STDERR:
|
|
impl () as M where .X = {} and .X = () and .X = {} {}
|
|
|
|
// --- fail_cycle_single.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface M { let X: type; }
|
|
|
|
// This fails because it resolves to `.X = .X` which is cyclical.
|
|
//
|
|
// CHECK:STDERR: fail_cycle_single.carbon:[[@LINE+2]]:12-26: error: found cycle in facet type constraint for `.(M.X)` [FacetTypeConstraintCycle]
|
|
// CHECK:STDERR:
|
|
impl () as M where .X = .X {}
|
|
|
|
// Even though `.X = ()` is specified, the rewrites are resolved left to right
|
|
// and a cycle `.X = .X` is found first.
|
|
//
|
|
// CHECK:STDERR: fail_cycle_single.carbon:[[@LINE+2]]:12-38: error: found cycle in facet type constraint for `.(M.X)` [FacetTypeConstraintCycle]
|
|
// CHECK:STDERR:
|
|
impl () as M where .X = .X and .X = () {}
|
|
|
|
// --- fail_cycle.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface M { let X: type; let Y: type; let Z: type; }
|
|
|
|
// This fails because it resolves to `.X = .X` which is cyclical.
|
|
// The value of .X and .Y becomes <error> but .Z is still valid.
|
|
//
|
|
//@dump-sem-ir-begin
|
|
// CHECK:STDERR: fail_cycle.carbon:[[@LINE+2]]:12-50: error: found cycle in facet type constraint for `.(M.Y)` [FacetTypeConstraintCycle]
|
|
// CHECK:STDERR:
|
|
impl () as M where .X = .Y and .Y = .X and .Z = () {}
|
|
//@dump-sem-ir-end
|
|
|
|
// --- fail_todo_cycle_between_interfaces.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface I {
|
|
let X1: type;
|
|
let X2: type;
|
|
}
|
|
interface J {
|
|
let X3: type;
|
|
}
|
|
|
|
// TODO: This should fail due to a cyclic definition of each value. But right
|
|
// now it's failing due to compound member access in a rewrite constraint not
|
|
// working.
|
|
//
|
|
// CHECK:STDERR: fail_todo_cycle_between_interfaces.carbon:[[@LINE+6]]:45: error: expected identifier or `Self` after `.` [ExpectedIdentifierOrSelfAfterPeriod]
|
|
// CHECK:STDERR:
|
|
// CHECK:STDERR: fail_todo_cycle_between_interfaces.carbon:[[@LINE+4]]:45: error: semantics TODO: `handle invalid parse trees in `check`` [SemanticsTodo]
|
|
// CHECK:STDERR:
|
|
// CHECK:STDERR: fail_todo_cycle_between_interfaces.carbon:[[@LINE+2]]:71: error: expected identifier or `Self` after `.` [ExpectedIdentifierOrSelfAfterPeriod]
|
|
// CHECK:STDERR:
|
|
impl () as I where .Self impls J and .X1 = .(J.X3) and .X2 = .X1 and .(J.X3) = .X2 {}
|
|
|
|
// --- non-type.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface N {
|
|
let Y: {.a: {}};
|
|
}
|
|
|
|
impl () as N where .Y = {.a = {}} { }
|
|
|
|
// --- non-type_repeated.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface N {
|
|
let Y: {.a: {}};
|
|
}
|
|
|
|
impl () as N where .Y = {.a = {}} and .Y = {.a = {}} { }
|
|
|
|
// --- fail_non-type_different.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface N {
|
|
let Y: {.a: type};
|
|
}
|
|
|
|
// CHECK:STDERR: fail_non-type_different.carbon:[[@LINE+2]]:12-52: error: associated constant `.(N.Y)` given two different values `{.a = {}}` and `{.a = ()}` [AssociatedConstantWithDifferentValues]
|
|
// CHECK:STDERR:
|
|
impl () as N where .Y = {.a = {}} and .Y = {.a = ()} {}
|
|
|
|
// --- fail_where_rewrite_function.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface IF { fn F(); }
|
|
|
|
class CD { }
|
|
|
|
// CHECK:STDERR: fail_where_rewrite_function.carbon:[[@LINE+2]]:12-26: error: rewrite specified for associated function F [RewriteForAssociatedFunction]
|
|
// CHECK:STDERR:
|
|
impl CD as IF where .F = 0 {
|
|
fn F() {}
|
|
}
|
|
|
|
// --- facet_type_in_assoc_constant.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface M { let X: type; }
|
|
constraint N {
|
|
extend require impls M where .X = {};
|
|
}
|
|
|
|
impl () as M where .X = N {}
|
|
|
|
// --- fail_todo_period_self_impl_lookup.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface Y {}
|
|
interface Z {
|
|
let Z1: Y;
|
|
}
|
|
|
|
class C;
|
|
impl C as Y {}
|
|
// Implied constraint: .Self impls Y. Should be verified when finishing the impl
|
|
// decl (where we know .Self is C). See:
|
|
// https://discord.com/channels/655572317891461132/941071822756143115/1400953094015160370
|
|
//
|
|
// CHECK:STDERR: fail_todo_period_self_impl_lookup.carbon:[[@LINE+2]]:25-29: error: cannot convert type `.Self` that implements `Z` into type implementing `Y` [ConversionFailureFacetToFacet]
|
|
// CHECK:STDERR:
|
|
impl C as Z where .Z1 = .Self {}
|
|
|
|
// --- fail_todo_period_self_compared_with_concrete_self.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface Y {}
|
|
interface Z {
|
|
let Z1: Y;
|
|
}
|
|
|
|
class C;
|
|
impl C as Y {}
|
|
impl C as Z where .Z1 = C {}
|
|
|
|
// Implied constraint: .Self impls Y. Should be verified against the type of the
|
|
// facet value replacing T when calling F.
|
|
//
|
|
// CHECK:STDERR: fail_todo_period_self_compared_with_concrete_self.carbon:[[@LINE+2]]:38-42: error: cannot convert type `.Self` that implements `Z` into type implementing `Y` [ConversionFailureFacetToFacet]
|
|
// CHECK:STDERR:
|
|
fn F(unused generic T: Z where .Z1 = .Self) {}
|
|
fn G() {
|
|
F(C);
|
|
|
|
// Implied constraint: .Self impls Y. Should be verified against the type of
|
|
// the facet value of C when casting.
|
|
//
|
|
// CHECK:STDERR: fail_todo_period_self_compared_with_concrete_self.carbon:[[@LINE+2]]:23-27: error: cannot convert type `.Self` that implements `Z` into type implementing `Y` [ConversionFailureFacetToFacet]
|
|
// CHECK:STDERR:
|
|
C as (Z where .Z1 = .Self);
|
|
}
|
|
|
|
// --- assoc_const_impls_in_decl.carbon
|
|
library "[[@TEST_NAME]]";
|
|
|
|
interface I { let X: type; }
|
|
interface J {}
|
|
|
|
impl () as J {}
|
|
|
|
// Test that we avoid an infinite impl lookup cycle from an LookupImplWitness
|
|
// instruction in the impl declaration. When matching this impl during impl
|
|
// lookup, we deduce and replace `T` with a specific argument, and resolve that
|
|
// specific's decl eval block. Doing so re-evaluates the lookup for `I` inside
|
|
// `.X`. If that lookup found this impl (since it's a final impl, eval can find
|
|
// it), we would deduce and produce an infinite cycle. Instructions inside the
|
|
// impl decl should not be able to find the impl.
|
|
final impl forall [T: type] T as I where .X = () and .X impls J {}
|
|
|
|
fn F(unused generic T: I where .X = ()) {}
|
|
fn G() {
|
|
class C;
|
|
F(C);
|
|
}
|
|
|
|
// CHECK:STDOUT: --- fail_many_different.carbon
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: constants {
|
|
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
|
// CHECK:STDOUT: %L.type: type = facet_type <@L> [concrete]
|
|
// CHECK:STDOUT: %L.assoc_type: type = assoc_entity_type @L [concrete]
|
|
// CHECK:STDOUT: %assoc0: %L.assoc_type = assoc_entity element0, @L.WithSelf.%W [concrete]
|
|
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
|
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
|
// CHECK:STDOUT: %.Self.frozen: %L.type = symbolic_binding .Self [symbolic_self]
|
|
// CHECK:STDOUT: %.Self.frozen.as_type: type = facet_access_type %.Self.frozen [symbolic_self]
|
|
// CHECK:STDOUT: %.63f: <witness> = impl_self_witness %.Self.frozen, @L [symbolic_self]
|
|
// CHECK:STDOUT: %impl.elem0.2e9: type = impl_witness_access %.63f, element0 [symbolic_self]
|
|
// CHECK:STDOUT: %tuple.type.2d5: type = tuple_type (%empty_tuple.type, %empty_tuple.type, %empty_tuple.type) [concrete]
|
|
// CHECK:STDOUT: %tuple.7e4: %tuple.type.2d5 = tuple_value (%empty_tuple, %empty_tuple, %empty_tuple) [concrete]
|
|
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
|
// CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
|
|
// CHECK:STDOUT: %tuple.type.e5a: type = tuple_type (%empty_struct_type, %empty_tuple.type, %empty_tuple.type) [concrete]
|
|
// CHECK:STDOUT: %tuple.b36: %tuple.type.e5a = tuple_value (%empty_struct, %empty_tuple, %empty_tuple) [concrete]
|
|
// CHECK:STDOUT: %tuple.type.d7e: type = tuple_type (%empty_struct_type, %empty_struct_type, %empty_tuple.type) [concrete]
|
|
// CHECK:STDOUT: %tuple.8ed: %tuple.type.d7e = tuple_value (%empty_struct, %empty_struct, %empty_tuple) [concrete]
|
|
// CHECK:STDOUT: %tuple.type.bd8: type = tuple_type (%empty_struct_type, %empty_tuple.type, %empty_struct_type) [concrete]
|
|
// CHECK:STDOUT: %tuple.d90: %tuple.type.bd8 = tuple_value (%empty_struct, %empty_tuple, %empty_struct) [concrete]
|
|
// CHECK:STDOUT: %.Self: %L.type = symbolic_binding .Self [symbolic_self]
|
|
// CHECK:STDOUT: %.300: <witness> = impl_self_witness %.Self, @L [symbolic_self]
|
|
// CHECK:STDOUT: %impl.elem0.865: type = impl_witness_access %.300, element0 [symbolic_self]
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: file {
|
|
// CHECK:STDOUT: impl_decl @empty_tuple.type.as.<error>.impl [concrete] {} {
|
|
// CHECK:STDOUT: %.loc11_7.1: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc11_7.2: type = converted %.loc11_7.1, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: %L.ref: type = name_ref L, file.%L.decl [concrete = constants.%L.type]
|
|
// CHECK:STDOUT: %.Self.frozen: %L.type = symbolic_binding .Self [symbolic_self = constants.%.Self.frozen]
|
|
// CHECK:STDOUT: %base_facet_type = requirement_base_facet_type %L.ref [concrete]
|
|
// CHECK:STDOUT: %.Self.ref.loc11_20: %L.type = name_ref .Self, %.Self.frozen [symbolic_self = constants.%.Self.frozen]
|
|
// CHECK:STDOUT: %.Self.as_type.loc11_20: type = facet_access_type %.Self.ref.loc11_20 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %.loc11_20: type = converted %.Self.ref.loc11_20, %.Self.as_type.loc11_20 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %W.ref.loc11_20: %L.assoc_type = name_ref W, @W.%assoc0 [concrete = constants.%assoc0]
|
|
// CHECK:STDOUT: %impl.elem0.loc11_20.1: type = impl_witness_access constants.%.63f, element0 [symbolic_self = constants.%impl.elem0.2e9]
|
|
// CHECK:STDOUT: %.loc11_27: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc11_31: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc11_35: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc11_36.1: %tuple.type.2d5 = tuple_literal (%.loc11_27, %.loc11_31, %.loc11_35) [concrete = constants.%tuple.7e4]
|
|
// CHECK:STDOUT: %.loc11_36.2: type = converted constants.%empty_tuple, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: %.loc11_36.3: type = converted constants.%empty_tuple, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: %.loc11_36.4: type = converted constants.%empty_tuple, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: %.loc11_36.5: type = converted %.loc11_36.1, constants.%tuple.type.2d5 [concrete = constants.%tuple.type.2d5]
|
|
// CHECK:STDOUT: %rewrite.loc11_23.1 = requirement_rewrite %impl.elem0.loc11_20.1, %.loc11_36.5 [concrete]
|
|
// CHECK:STDOUT: %.Self.ref.loc11_42: %L.type = name_ref .Self, %.Self.frozen [symbolic_self = constants.%.Self.frozen]
|
|
// CHECK:STDOUT: %.Self.as_type.loc11_42: type = facet_access_type %.Self.ref.loc11_42 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %.loc11_42: type = converted %.Self.ref.loc11_42, %.Self.as_type.loc11_42 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %W.ref.loc11_42: %L.assoc_type = name_ref W, @W.%assoc0 [concrete = constants.%assoc0]
|
|
// CHECK:STDOUT: %impl.elem0.loc11_42.1: type = impl_witness_access constants.%.63f, element0 [symbolic_self = constants.%impl.elem0.2e9]
|
|
// CHECK:STDOUT: %impl.elem0.subst.loc11_42.1: type = impl_witness_access_substituted %impl.elem0.loc11_42.1, %.loc11_36.5 [concrete = constants.%tuple.type.2d5]
|
|
// CHECK:STDOUT: %.loc11_49: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
|
|
// CHECK:STDOUT: %.loc11_53: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc11_57: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc11_58.1: %tuple.type.e5a = tuple_literal (%.loc11_49, %.loc11_53, %.loc11_57) [concrete = constants.%tuple.b36]
|
|
// CHECK:STDOUT: %.loc11_58.2: type = converted constants.%empty_struct, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
|
|
// CHECK:STDOUT: %.loc11_58.3: type = converted constants.%empty_tuple, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: %.loc11_58.4: type = converted constants.%empty_tuple, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: %.loc11_58.5: type = converted %.loc11_58.1, constants.%tuple.type.e5a [concrete = constants.%tuple.type.e5a]
|
|
// CHECK:STDOUT: %rewrite.loc11_45.1 = requirement_rewrite %impl.elem0.subst.loc11_42.1, %.loc11_58.5 [concrete]
|
|
// CHECK:STDOUT: %.Self.ref.loc11_64: %L.type = name_ref .Self, %.Self.frozen [symbolic_self = constants.%.Self.frozen]
|
|
// CHECK:STDOUT: %.Self.as_type.loc11_64: type = facet_access_type %.Self.ref.loc11_64 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %.loc11_64: type = converted %.Self.ref.loc11_64, %.Self.as_type.loc11_64 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %W.ref.loc11_64: %L.assoc_type = name_ref W, @W.%assoc0 [concrete = constants.%assoc0]
|
|
// CHECK:STDOUT: %impl.elem0.loc11_64.1: type = impl_witness_access constants.%.63f, element0 [symbolic_self = constants.%impl.elem0.2e9]
|
|
// CHECK:STDOUT: %impl.elem0.subst.loc11_64.1: type = impl_witness_access_substituted %impl.elem0.loc11_64.1, %.loc11_36.5 [concrete = constants.%tuple.type.2d5]
|
|
// CHECK:STDOUT: %.loc11_71: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
|
|
// CHECK:STDOUT: %.loc11_75: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
|
|
// CHECK:STDOUT: %.loc11_79: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc11_80.1: %tuple.type.d7e = tuple_literal (%.loc11_71, %.loc11_75, %.loc11_79) [concrete = constants.%tuple.8ed]
|
|
// CHECK:STDOUT: %.loc11_80.2: type = converted constants.%empty_struct, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
|
|
// CHECK:STDOUT: %.loc11_80.3: type = converted constants.%empty_struct, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
|
|
// CHECK:STDOUT: %.loc11_80.4: type = converted constants.%empty_tuple, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: %.loc11_80.5: type = converted %.loc11_80.1, constants.%tuple.type.d7e [concrete = constants.%tuple.type.d7e]
|
|
// CHECK:STDOUT: %rewrite.loc11_67.1 = requirement_rewrite %impl.elem0.subst.loc11_64.1, %.loc11_80.5 [concrete]
|
|
// CHECK:STDOUT: %.Self.ref.loc11_86: %L.type = name_ref .Self, %.Self.frozen [symbolic_self = constants.%.Self.frozen]
|
|
// CHECK:STDOUT: %.Self.as_type.loc11_86: type = facet_access_type %.Self.ref.loc11_86 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %.loc11_86: type = converted %.Self.ref.loc11_86, %.Self.as_type.loc11_86 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %W.ref.loc11_86: %L.assoc_type = name_ref W, @W.%assoc0 [concrete = constants.%assoc0]
|
|
// CHECK:STDOUT: %impl.elem0.loc11_86.1: type = impl_witness_access constants.%.63f, element0 [symbolic_self = constants.%impl.elem0.2e9]
|
|
// CHECK:STDOUT: %impl.elem0.subst.loc11_86.1: type = impl_witness_access_substituted %impl.elem0.loc11_86.1, %.loc11_36.5 [concrete = constants.%tuple.type.2d5]
|
|
// CHECK:STDOUT: %.loc11_93: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
|
|
// CHECK:STDOUT: %.loc11_97: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc11_101: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
|
|
// CHECK:STDOUT: %.loc11_102.1: %tuple.type.bd8 = tuple_literal (%.loc11_93, %.loc11_97, %.loc11_101) [concrete = constants.%tuple.d90]
|
|
// CHECK:STDOUT: %.loc11_102.2: type = converted constants.%empty_struct, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
|
|
// CHECK:STDOUT: %.loc11_102.3: type = converted constants.%empty_tuple, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: %.loc11_102.4: type = converted constants.%empty_struct, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
|
|
// CHECK:STDOUT: %.loc11_102.5: type = converted %.loc11_102.1, constants.%tuple.type.bd8 [concrete = constants.%tuple.type.bd8]
|
|
// CHECK:STDOUT: %rewrite.loc11_89.1 = requirement_rewrite %impl.elem0.subst.loc11_86.1, %.loc11_102.5 [concrete]
|
|
// CHECK:STDOUT: %impl.elem0.loc11_20.2: type = impl_witness_access constants.%.300, element0 [symbolic_self = constants.%impl.elem0.865]
|
|
// CHECK:STDOUT: %rewrite.loc11_23.2 = requirement_rewrite %impl.elem0.loc11_20.2, %.loc11_36.5 [concrete]
|
|
// CHECK:STDOUT: %impl.elem0.loc11_42.2: type = impl_witness_access constants.%.300, element0 [symbolic_self = constants.%impl.elem0.865]
|
|
// CHECK:STDOUT: %impl.elem0.subst.loc11_42.2: type = impl_witness_access_substituted %impl.elem0.loc11_42.2, %.loc11_36.5 [concrete = constants.%tuple.type.2d5]
|
|
// CHECK:STDOUT: %rewrite.loc11_45.2 = requirement_rewrite %impl.elem0.subst.loc11_42.2, %.loc11_58.5 [concrete]
|
|
// CHECK:STDOUT: %impl.elem0.loc11_64.2: type = impl_witness_access constants.%.300, element0 [symbolic_self = constants.%impl.elem0.865]
|
|
// CHECK:STDOUT: %impl.elem0.subst.loc11_64.2: type = impl_witness_access_substituted %impl.elem0.loc11_64.2, %.loc11_36.5 [concrete = constants.%tuple.type.2d5]
|
|
// CHECK:STDOUT: %rewrite.loc11_67.2 = requirement_rewrite %impl.elem0.subst.loc11_64.2, %.loc11_80.5 [concrete]
|
|
// CHECK:STDOUT: %impl.elem0.loc11_86.2: type = impl_witness_access constants.%.300, element0 [symbolic_self = constants.%impl.elem0.865]
|
|
// CHECK:STDOUT: %impl.elem0.subst.loc11_86.2: type = impl_witness_access_substituted %impl.elem0.loc11_86.2, %.loc11_36.5 [concrete = constants.%tuple.type.2d5]
|
|
// CHECK:STDOUT: %rewrite.loc11_89.2 = requirement_rewrite %impl.elem0.subst.loc11_86.2, %.loc11_102.5 [concrete]
|
|
// CHECK:STDOUT: %.loc11_14: type = where_expr [concrete = <error>] {
|
|
// CHECK:STDOUT: %base_facet_type = requirement_base_facet_type %L.ref [concrete]
|
|
// CHECK:STDOUT: %rewrite.loc11_23.2 = requirement_rewrite %impl.elem0.loc11_20.2, %.loc11_36.5 [concrete]
|
|
// CHECK:STDOUT: %rewrite.loc11_45.2 = requirement_rewrite %impl.elem0.subst.loc11_42.2, %.loc11_58.5 [concrete]
|
|
// CHECK:STDOUT: %rewrite.loc11_67.2 = requirement_rewrite %impl.elem0.subst.loc11_64.2, %.loc11_80.5 [concrete]
|
|
// CHECK:STDOUT: %rewrite.loc11_89.2 = requirement_rewrite %impl.elem0.subst.loc11_86.2, %.loc11_102.5 [concrete]
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: impl @empty_tuple.type.as.<error>.impl: %.loc11_7.2 as <error> {
|
|
// CHECK:STDOUT: !members:
|
|
// CHECK:STDOUT: extend <error>
|
|
// CHECK:STDOUT: witness = <error>
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: --- fail_cycle.carbon
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: constants {
|
|
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
|
// CHECK:STDOUT: %M.type: type = facet_type <@M> [concrete]
|
|
// CHECK:STDOUT: %M.assoc_type: type = assoc_entity_type @M [concrete]
|
|
// CHECK:STDOUT: %assoc0: %M.assoc_type = assoc_entity element0, @M.WithSelf.%X [concrete]
|
|
// CHECK:STDOUT: %assoc1: %M.assoc_type = assoc_entity element1, @M.WithSelf.%Y [concrete]
|
|
// CHECK:STDOUT: %assoc2: %M.assoc_type = assoc_entity element2, @M.WithSelf.%Z [concrete]
|
|
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
|
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
|
// CHECK:STDOUT: %.Self.frozen: %M.type = symbolic_binding .Self [symbolic_self]
|
|
// CHECK:STDOUT: %.Self.frozen.as_type: type = facet_access_type %.Self.frozen [symbolic_self]
|
|
// CHECK:STDOUT: %.b7a: <witness> = impl_self_witness %.Self.frozen, @M [symbolic_self]
|
|
// CHECK:STDOUT: %impl.elem0.88c: type = impl_witness_access %.b7a, element0 [symbolic_self]
|
|
// CHECK:STDOUT: %impl.elem1.17a: type = impl_witness_access %.b7a, element1 [symbolic_self]
|
|
// CHECK:STDOUT: %impl.elem2.efd: type = impl_witness_access %.b7a, element2 [symbolic_self]
|
|
// CHECK:STDOUT: %.Self: %M.type = symbolic_binding .Self [symbolic_self]
|
|
// CHECK:STDOUT: %.f89: <witness> = impl_self_witness %.Self, @M [symbolic_self]
|
|
// CHECK:STDOUT: %impl.elem0.dfb: type = impl_witness_access %.f89, element0 [symbolic_self]
|
|
// CHECK:STDOUT: %impl.elem1.bb0: type = impl_witness_access %.f89, element1 [symbolic_self]
|
|
// CHECK:STDOUT: %impl.elem2.d85: type = impl_witness_access %.f89, element2 [symbolic_self]
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: file {
|
|
// CHECK:STDOUT: impl_decl @empty_tuple.type.as.<error>.impl [concrete] {} {
|
|
// CHECK:STDOUT: %.loc11_7.1: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc11_7.2: type = converted %.loc11_7.1, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: %M.ref: type = name_ref M, file.%M.decl [concrete = constants.%M.type]
|
|
// CHECK:STDOUT: %.Self.frozen: %M.type = symbolic_binding .Self [symbolic_self = constants.%.Self.frozen]
|
|
// CHECK:STDOUT: %base_facet_type = requirement_base_facet_type %M.ref [concrete]
|
|
// CHECK:STDOUT: %.Self.ref.loc11_20: %M.type = name_ref .Self, %.Self.frozen [symbolic_self = constants.%.Self.frozen]
|
|
// CHECK:STDOUT: %.Self.as_type.loc11_20: type = facet_access_type %.Self.ref.loc11_20 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %.loc11_20: type = converted %.Self.ref.loc11_20, %.Self.as_type.loc11_20 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %X.ref.loc11_20: %M.assoc_type = name_ref X, @X.%assoc0 [concrete = constants.%assoc0]
|
|
// CHECK:STDOUT: %impl.elem0.loc11_20.1: type = impl_witness_access constants.%.b7a, element0 [symbolic_self = constants.%impl.elem0.88c]
|
|
// CHECK:STDOUT: %.Self.ref.loc11_25: %M.type = name_ref .Self, %.Self.frozen [symbolic_self = constants.%.Self.frozen]
|
|
// CHECK:STDOUT: %.Self.as_type.loc11_25: type = facet_access_type %.Self.ref.loc11_25 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %.loc11_25: type = converted %.Self.ref.loc11_25, %.Self.as_type.loc11_25 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %Y.ref.loc11_25: %M.assoc_type = name_ref Y, @Y.%assoc1 [concrete = constants.%assoc1]
|
|
// CHECK:STDOUT: %impl.elem1.loc11_25.1: type = impl_witness_access constants.%.b7a, element1 [symbolic_self = constants.%impl.elem1.17a]
|
|
// CHECK:STDOUT: %rewrite.loc11_23.1 = requirement_rewrite %impl.elem0.loc11_20.1, %impl.elem1.loc11_25.1 [concrete]
|
|
// CHECK:STDOUT: %.Self.ref.loc11_32: %M.type = name_ref .Self, %.Self.frozen [symbolic_self = constants.%.Self.frozen]
|
|
// CHECK:STDOUT: %.Self.as_type.loc11_32: type = facet_access_type %.Self.ref.loc11_32 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %.loc11_32: type = converted %.Self.ref.loc11_32, %.Self.as_type.loc11_32 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %Y.ref.loc11_32: %M.assoc_type = name_ref Y, @Y.%assoc1 [concrete = constants.%assoc1]
|
|
// CHECK:STDOUT: %impl.elem1.loc11_32.1: type = impl_witness_access constants.%.b7a, element1 [symbolic_self = constants.%impl.elem1.17a]
|
|
// CHECK:STDOUT: %.Self.ref.loc11_37: %M.type = name_ref .Self, %.Self.frozen [symbolic_self = constants.%.Self.frozen]
|
|
// CHECK:STDOUT: %.Self.as_type.loc11_37: type = facet_access_type %.Self.ref.loc11_37 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %.loc11_37: type = converted %.Self.ref.loc11_37, %.Self.as_type.loc11_37 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %X.ref.loc11_37: %M.assoc_type = name_ref X, @X.%assoc0 [concrete = constants.%assoc0]
|
|
// CHECK:STDOUT: %impl.elem0.loc11_37.1: type = impl_witness_access constants.%.b7a, element0 [symbolic_self = constants.%impl.elem0.88c]
|
|
// CHECK:STDOUT: %impl.elem0.subst.loc11_37.1: type = impl_witness_access_substituted %impl.elem0.loc11_37.1, %impl.elem1.loc11_25.1 [symbolic_self = constants.%impl.elem1.17a]
|
|
// CHECK:STDOUT: %rewrite.loc11_35.1 = requirement_rewrite %impl.elem1.loc11_32.1, %impl.elem0.subst.loc11_37.1 [concrete]
|
|
// CHECK:STDOUT: %.Self.ref.loc11_44: %M.type = name_ref .Self, %.Self.frozen [symbolic_self = constants.%.Self.frozen]
|
|
// CHECK:STDOUT: %.Self.as_type.loc11_44: type = facet_access_type %.Self.ref.loc11_44 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %.loc11_44: type = converted %.Self.ref.loc11_44, %.Self.as_type.loc11_44 [symbolic_self = constants.%.Self.frozen.as_type]
|
|
// CHECK:STDOUT: %Z.ref: %M.assoc_type = name_ref Z, @Z.%assoc2 [concrete = constants.%assoc2]
|
|
// CHECK:STDOUT: %impl.elem2.loc11_44.1: type = impl_witness_access constants.%.b7a, element2 [symbolic_self = constants.%impl.elem2.efd]
|
|
// CHECK:STDOUT: %.loc11_50.1: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
|
|
// CHECK:STDOUT: %.loc11_50.2: type = converted %.loc11_50.1, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
|
|
// CHECK:STDOUT: %rewrite.loc11_47.1 = requirement_rewrite %impl.elem2.loc11_44.1, %.loc11_50.2 [concrete]
|
|
// CHECK:STDOUT: %impl.elem0.loc11_20.2: type = impl_witness_access constants.%.f89, element0 [symbolic_self = constants.%impl.elem0.dfb]
|
|
// CHECK:STDOUT: %impl.elem1.loc11_25.2: type = impl_witness_access constants.%.f89, element1 [symbolic_self = constants.%impl.elem1.bb0]
|
|
// CHECK:STDOUT: %rewrite.loc11_23.2 = requirement_rewrite %impl.elem0.loc11_20.2, %impl.elem1.loc11_25.2 [concrete]
|
|
// CHECK:STDOUT: %impl.elem1.loc11_32.2: type = impl_witness_access constants.%.f89, element1 [symbolic_self = constants.%impl.elem1.bb0]
|
|
// CHECK:STDOUT: %impl.elem0.loc11_37.2: type = impl_witness_access constants.%.f89, element0 [symbolic_self = constants.%impl.elem0.dfb]
|
|
// CHECK:STDOUT: %impl.elem1.loc11_25.3: type = impl_witness_access constants.%.f89, element1 [symbolic_self = constants.%impl.elem1.bb0]
|
|
// CHECK:STDOUT: %impl.elem0.subst.loc11_37.2: type = impl_witness_access_substituted %impl.elem0.loc11_37.2, %impl.elem1.loc11_25.3 [symbolic_self = constants.%impl.elem1.bb0]
|
|
// CHECK:STDOUT: %rewrite.loc11_35.2 = requirement_rewrite %impl.elem1.loc11_32.2, %impl.elem0.subst.loc11_37.2 [concrete]
|
|
// CHECK:STDOUT: %impl.elem2.loc11_44.2: type = impl_witness_access constants.%.f89, element2 [symbolic_self = constants.%impl.elem2.d85]
|
|
// CHECK:STDOUT: %rewrite.loc11_47.2 = requirement_rewrite %impl.elem2.loc11_44.2, %.loc11_50.2 [concrete]
|
|
// CHECK:STDOUT: %.loc11_14: type = where_expr [concrete = <error>] {
|
|
// CHECK:STDOUT: %base_facet_type = requirement_base_facet_type %M.ref [concrete]
|
|
// CHECK:STDOUT: %rewrite.loc11_23.2 = requirement_rewrite %impl.elem0.loc11_20.2, %impl.elem1.loc11_25.2 [concrete]
|
|
// CHECK:STDOUT: %rewrite.loc11_35.2 = requirement_rewrite %impl.elem1.loc11_32.2, %impl.elem0.subst.loc11_37.2 [concrete]
|
|
// CHECK:STDOUT: %rewrite.loc11_47.2 = requirement_rewrite %impl.elem2.loc11_44.2, %.loc11_50.2 [concrete]
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: impl @empty_tuple.type.as.<error>.impl: %.loc11_7.2 as <error> {
|
|
// CHECK:STDOUT: !members:
|
|
// CHECK:STDOUT: extend <error>
|
|
// CHECK:STDOUT: witness = <error>
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|