Skip to content

Commit 9a6bed6

Browse files
committed
Update static_asserted tests to match new line numbers
1 parent 620b5fe commit 9a6bed6

6 files changed

+6
-6
lines changed

regression-tests/test-results/apple-clang-14/pure2-as-cast-arithetic-types-bigger-to-smaller.cpp.output

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
In file included from pure2-as-cast-arithetic-types-bigger-to-smaller.cpp:7:
2-
../../../include/cpp2util.h:1794:9: error: static_assert failed due to requirement 'program_violates_type_safety_guarantee<unsigned char, unsigned short &&>' "'as' does not allow unsafe narrowing conversions - if you're sure you want this, use `unsafe_narrow<T>()` to force the conversion"
2+
../../../include/cpp2util.h:1803:9: error: static_assert failed due to requirement 'program_violates_type_safety_guarantee<unsigned char, unsigned short &&>' "'as' does not allow unsafe narrowing conversions - if you're sure you want this, use `unsafe_narrow<T>()` to force the conversion"
33
static_assert(
44
^
55
pure2-as-cast-arithetic-types-bigger-to-smaller.cpp:19:19: note: in instantiation of function template specialization 'cpp2::as_<unsigned char, unsigned short>' requested here

regression-tests/test-results/apple-clang-14/pure2-as-cast-bigger-signed-to-smaller-unsigned.cpp.output

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
In file included from pure2-as-cast-bigger-signed-to-smaller-unsigned.cpp:7:
2-
../../../include/cpp2util.h:1794:9: error: static_assert failed due to requirement 'program_violates_type_safety_guarantee<unsigned char, short &&>' "'as' does not allow unsafe narrowing conversions - if you're sure you want this, use `unsafe_narrow<T>()` to force the conversion"
2+
../../../include/cpp2util.h:1803:9: error: static_assert failed due to requirement 'program_violates_type_safety_guarantee<unsigned char, short &&>' "'as' does not allow unsafe narrowing conversions - if you're sure you want this, use `unsafe_narrow<T>()` to force the conversion"
33
static_assert(
44
^
55
pure2-as-cast-bigger-signed-to-smaller-unsigned.cpp:19:19: note: in instantiation of function template specialization 'cpp2::as_<unsigned char, short>' requested here

regression-tests/test-results/apple-clang-14/pure2-as-cast-class-to-unrelated-class.cpp.output

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
In file included from pure2-as-cast-class-to-unrelated-class.cpp:7:
2-
../../../include/cpp2util.h:1800:9: error: static_assert failed due to requirement 'program_violates_type_safety_guarantee<A, B &&>' "No safe 'as' cast available - please check your cast"
2+
../../../include/cpp2util.h:1809:9: error: static_assert failed due to requirement 'program_violates_type_safety_guarantee<A, B &&>' "No safe 'as' cast available - please check your cast"
33
static_assert(
44
^
55
pure2-as-cast-class-to-unrelated-class.cpp2:12:19: note: in instantiation of function template specialization 'cpp2::as_<A, B>' requested here

regression-tests/test-results/apple-clang-14/pure2-as-cast-custom-class-to-string.cpp.output

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
In file included from pure2-as-cast-custom-class-to-string.cpp:7:
2-
../../../include/cpp2util.h:1800:9: error: static_assert failed due to requirement 'program_violates_type_safety_guarantee<std::string, A &&>' "No safe 'as' cast available - please check your cast"
2+
../../../include/cpp2util.h:1809:9: error: static_assert failed due to requirement 'program_violates_type_safety_guarantee<std::string, A &&>' "No safe 'as' cast available - please check your cast"
33
static_assert(
44
^
55
pure2-as-cast-custom-class-to-string.cpp2:11:19: note: in instantiation of function template specialization 'cpp2::as_<std::string, A>' requested here

regression-tests/test-results/apple-clang-14/pure2-as-cast-double-to-int.cpp.output

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
In file included from pure2-as-cast-double-to-int.cpp:7:
2-
../../../include/cpp2util.h:1794:9: error: static_assert failed due to requirement 'program_violates_type_safety_guarantee<int, double &&>' "'as' does not allow unsafe narrowing conversions - if you're sure you want this, use `unsafe_narrow<T>()` to force the conversion"
2+
../../../include/cpp2util.h:1803:9: error: static_assert failed due to requirement 'program_violates_type_safety_guarantee<int, double &&>' "'as' does not allow unsafe narrowing conversions - if you're sure you want this, use `unsafe_narrow<T>()` to force the conversion"
33
static_assert(
44
^
55
pure2-as-cast-double-to-int.cpp:19:19: note: in instantiation of function template specialization 'cpp2::as_<int, double>' requested here

regression-tests/test-results/apple-clang-14/pure2-as-cast-to-unrelated-type.cpp.output

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
In file included from pure2-as-cast-to-unrelated-type.cpp:7:
2-
../../../include/cpp2util.h:1800:9: error: static_assert failed due to requirement 'program_violates_type_safety_guarantee<A, int &>' "No safe 'as' cast available - please check your cast"
2+
../../../include/cpp2util.h:1809:9: error: static_assert failed due to requirement 'program_violates_type_safety_guarantee<A, int &>' "No safe 'as' cast available - please check your cast"
33
static_assert(
44
^
55
pure2-as-cast-to-unrelated-type.cpp2:5:19: note: in instantiation of function template specialization 'cpp2::as_<A, int &>' requested here

0 commit comments

Comments
 (0)