Skip to content

Commit 768d7b6

Browse files
committed
update snapshots ; not sure if we should add 1 or 2 snapshot tests with comments parsing enabled.
1 parent bc56502 commit 768d7b6

8 files changed

+8
-170
lines changed

naga/tests/out/ir/access.compact.ron

+1-17
Original file line numberDiff line numberDiff line change
@@ -2854,21 +2854,5 @@
28542854
],
28552855
diagnostic_filters: [],
28562856
diagnostic_filter_leaf: None,
2857-
comments: Some((
2858-
types: {
2859-
3: [
2860-
"// This snapshot tests accessing various containers, dereferencing pointers.",
2861-
],
2862-
},
2863-
struct_members: {},
2864-
entry_points: {},
2865-
functions: {},
2866-
constants: {},
2867-
global_variables: {
2868-
0: [
2869-
"// tests msl padding insertion for global constants",
2870-
],
2871-
},
2872-
module: [],
2873-
)),
2857+
comments: None,
28742858
)

naga/tests/out/ir/access.ron

+1-17
Original file line numberDiff line numberDiff line change
@@ -2854,21 +2854,5 @@
28542854
],
28552855
diagnostic_filters: [],
28562856
diagnostic_filter_leaf: None,
2857-
comments: Some((
2858-
types: {
2859-
3: [
2860-
"// This snapshot tests accessing various containers, dereferencing pointers.",
2861-
],
2862-
},
2863-
struct_members: {},
2864-
entry_points: {},
2865-
functions: {},
2866-
constants: {},
2867-
global_variables: {
2868-
0: [
2869-
"// tests msl padding insertion for global constants",
2870-
],
2871-
},
2872-
module: [],
2873-
)),
2857+
comments: None,
28742858
)

naga/tests/out/ir/collatz.compact.ron

+1-22
Original file line numberDiff line numberDiff line change
@@ -335,26 +335,5 @@
335335
],
336336
diagnostic_filters: [],
337337
diagnostic_filter_leaf: None,
338-
comments: Some((
339-
types: {},
340-
struct_members: {},
341-
entry_points: {},
342-
functions: {
343-
0: [
344-
"// The Collatz Conjecture states that for any integer n:",
345-
"// If n is even, n = n/2",
346-
"// If n is odd, n = 3n+1",
347-
"// And repeat this process for each new n, you will always eventually reach 1.",
348-
"// Though the conjecture has not been proven, no counterexample has ever been found.",
349-
"// This function returns how many times this recurrence needs to be applied to reach 1.",
350-
],
351-
},
352-
constants: {},
353-
global_variables: {
354-
0: [
355-
"// this is used as both input and output for convenience",
356-
],
357-
},
358-
module: [],
359-
)),
338+
comments: None,
360339
)

naga/tests/out/ir/collatz.ron

+1-22
Original file line numberDiff line numberDiff line change
@@ -335,26 +335,5 @@
335335
],
336336
diagnostic_filters: [],
337337
diagnostic_filter_leaf: None,
338-
comments: Some((
339-
types: {},
340-
struct_members: {},
341-
entry_points: {},
342-
functions: {
343-
0: [
344-
"// The Collatz Conjecture states that for any integer n:",
345-
"// If n is even, n = n/2",
346-
"// If n is odd, n = 3n+1",
347-
"// And repeat this process for each new n, you will always eventually reach 1.",
348-
"// Though the conjecture has not been proven, no counterexample has ever been found.",
349-
"// This function returns how many times this recurrence needs to be applied to reach 1.",
350-
],
351-
},
352-
constants: {},
353-
global_variables: {
354-
0: [
355-
"// this is used as both input and output for convenience",
356-
],
357-
},
358-
module: [],
359-
)),
338+
comments: None,
360339
)

naga/tests/out/ir/const_assert.compact.ron

+1-17
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,5 @@
5454
entry_points: [],
5555
diagnostic_filters: [],
5656
diagnostic_filter_leaf: None,
57-
comments: Some((
58-
types: {},
59-
struct_members: {},
60-
entry_points: {},
61-
functions: {
62-
0: [
63-
"// parentheses are optional.",
64-
],
65-
},
66-
constants: {
67-
0: [
68-
"// Sourced from https://www.w3.org/TR/WGSL/#const-assert-statement",
69-
],
70-
},
71-
global_variables: {},
72-
module: [],
73-
)),
57+
comments: None,
7458
)

naga/tests/out/ir/const_assert.ron

+1-17
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,5 @@
5454
entry_points: [],
5555
diagnostic_filters: [],
5656
diagnostic_filter_leaf: None,
57-
comments: Some((
58-
types: {},
59-
struct_members: {},
60-
entry_points: {},
61-
functions: {
62-
0: [
63-
"// parentheses are optional.",
64-
],
65-
},
66-
constants: {
67-
0: [
68-
"// Sourced from https://www.w3.org/TR/WGSL/#const-assert-statement",
69-
],
70-
},
71-
global_variables: {},
72-
module: [],
73-
)),
57+
comments: None,
7458
)

naga/tests/out/ir/local-const.compact.ron

+1-29
Original file line numberDiff line numberDiff line change
@@ -142,33 +142,5 @@
142142
entry_points: [],
143143
diagnostic_filters: [],
144144
diagnostic_filter_leaf: None,
145-
comments: Some((
146-
types: {},
147-
struct_members: {},
148-
entry_points: {},
149-
functions: {
150-
0: [
151-
"// AbstractFloat with a value of 2.",
152-
],
153-
},
154-
constants: {
155-
1: [
156-
"// AbstractInt with a value of 4.",
157-
],
158-
2: [
159-
"// i32 with a value of 4.",
160-
],
161-
3: [
162-
"// u32 with a value of 4.",
163-
],
164-
4: [
165-
"// f32 with a value of 4.",
166-
],
167-
5: [
168-
"// vec3 of AbstractInt with a value of (4, 4, 4).",
169-
],
170-
},
171-
global_variables: {},
172-
module: [],
173-
)),
145+
comments: None,
174146
)

naga/tests/out/ir/local-const.ron

+1-29
Original file line numberDiff line numberDiff line change
@@ -142,33 +142,5 @@
142142
entry_points: [],
143143
diagnostic_filters: [],
144144
diagnostic_filter_leaf: None,
145-
comments: Some((
146-
types: {},
147-
struct_members: {},
148-
entry_points: {},
149-
functions: {
150-
0: [
151-
"// AbstractFloat with a value of 2.",
152-
],
153-
},
154-
constants: {
155-
1: [
156-
"// AbstractInt with a value of 4.",
157-
],
158-
2: [
159-
"// i32 with a value of 4.",
160-
],
161-
3: [
162-
"// u32 with a value of 4.",
163-
],
164-
4: [
165-
"// f32 with a value of 4.",
166-
],
167-
5: [
168-
"// vec3 of AbstractInt with a value of (4, 4, 4).",
169-
],
170-
},
171-
global_variables: {},
172-
module: [],
173-
)),
145+
comments: None,
174146
)

0 commit comments

Comments
 (0)