File: fix-tests-no-default-features.patch

package info (click to toggle)
rust-lalrpop-util 0.19.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 140 kB
  • sloc: makefile: 4
file content (24 lines) | stat: -rw-r--r-- 638 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: lalrpop-util/src/lib.rs
===================================================================
--- lalrpop-util.orig/src/lib.rs
+++ lalrpop-util/src/lib.rs
@@ -197,6 +197,8 @@ macro_rules! lalrpop_mod {
 #[cfg(test)]
 mod tests {
     use super::*;
+    use alloc::{format,vec};
+    use alloc::string::ToString;
 
     #[test]
     fn test() {
Index: lalrpop-util/Cargo.toml
===================================================================
--- lalrpop-util.orig/Cargo.toml
+++ lalrpop-util/Cargo.toml
@@ -27,5 +27,5 @@ optional = true
 
 [features]
 default = ["std"]
-lexer = ["regex"]
+lexer = ["regex","std"]
 std = []