Skip to content

Commit 60f9ca3

Browse files
authored
remove smallvec from parser (#1580)
1 parent 9db13fe commit 60f9ca3

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendored/sqlite3-parser/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ phf = { version = "0.11", features = ["uncased"] }
3030
log = "0.4"
3131
memchr = "2.0"
3232
fallible-iterator = "0.3"
33-
smallvec = ">=1.6.1"
3433
bitflags = "2.0"
3534
uncased = "0.9"
3635
indexmap = "2.0"

vendored/sqlite3-parser/third_party/lemon/lempar.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ pub struct yyStackEntry {
174174
** is the value of the token */
175175
}
176176

177-
use smallvec::SmallVec;
178-
179177
/* The state of the parser is completely contained in an instance of
180178
** the following structure */
181179
#[allow(non_camel_case_types)]
@@ -186,7 +184,7 @@ pub struct yyParser<'input> {
186184
//#[cfg(not(feature = "YYNOERRORRECOVERY"))]
187185
yyerrcnt: i32, /* Shifts left before out of the error */
188186
%% /* A place to hold %extra_context */
189-
yystack: SmallVec<[yyStackEntry; YYSTACKDEPTH]>, /* The parser's stack */
187+
yystack: Vec<yyStackEntry>, /* The parser's stack */
190188
}
191189

192190
use std::cmp::Ordering;
@@ -324,7 +322,7 @@ impl yyParser<'_> {
324322
yyidx: 0,
325323
#[cfg(feature = "YYTRACKMAXSTACKDEPTH")]
326324
yyhwm: 0,
327-
yystack: SmallVec::new(),
325+
yystack: Vec::with_capacity(YYSTACKDEPTH),
328326
//#[cfg(not(feature = "YYNOERRORRECOVERY"))]
329327
yyerrcnt: -1,
330328
%% /* Optional %extra_context store */

0 commit comments

Comments
 (0)