Skip to content

Commit ff99d8c

Browse files
committed
blesses tests/ui/intrinsics
1 parent 65ebaff commit ff99d8c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

sql.txt

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-- Write your query for task 2 in this cell
2+
WITH new_data AS (
3+
SELECT
4+
CASE
5+
WHEN category IS NULL OR category NOT IN ('Bread', 'Pastries', 'Cakes', 'Cookies', 'Muffins', 'Donuts') THEN 'Donuts' ELSE category END ,
6+
CASE
7+
WHEN item_type IS NULL OR category NOT IN ('Signature Item', 'Seasonal', 'Limited','Standard') THEN 'Standard' ELSE item_type END ,
8+
CASE
9+
WHEN dietary_options IS NULL OR category NOT IN ('Conventional', 'Gluten-free', 'Vegan', 'Organic') THEN 'Conventional' ELSE dietary_options END ,
10+
CASE
11+
WHEN sweet_intensity IS NULL OR category NOT IN ('Mild/Subtle', 'Moderate', 'Intense') THEN 'Mild/Subtle' ELSE sweet_intensity END ,
12+
13+
)

tests/ui/intrinsics/reify-intrinsic.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LL | std::intrinsics::floorf32,
2222
| ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot coerce intrinsics to function pointers
2323
|
2424
= note: expected fn pointer `unsafe extern "rust-intrinsic" fn(_) -> _`
25-
found fn item `unsafe extern "rust-intrinsic" fn(_) -> _ {floorf32}`
25+
found fn item `unsafe fn(_) -> _ {floorf32}`
2626

2727
error: aborting due to 3 previous errors
2828

0 commit comments

Comments
 (0)