Skip to content

Commit dc4190f

Browse files
authored
fix: fix compile fail on windows for rustc_data_structure and bump version (#1245)
* fix: fix windows compile error in rustc_data_structures Signed-off-by: zongz <[email protected]> * chore: bump rustc_data_structure version to 0.1.2 Signed-off-by: zongz <[email protected]> * chore: bump rustc_span version to 0.1.2 Signed-off-by: zongz <[email protected]> * chore: bump compiler_base_span version to 0.1.3 Signed-off-by: zongz <[email protected]> * chore: bump compiler_base_error version to 0.1.6 Signed-off-by: zongz <[email protected]> * chore: bump compiler_base_session version to 0.1.3 Signed-off-by: zongz <[email protected]> * fix: bump all compiler_base dependencies version Signed-off-by: zongz <[email protected]> --------- Signed-off-by: zongz <[email protected]>
1 parent 5871078 commit dc4190f

File tree

18 files changed

+35
-36
lines changed

18 files changed

+35
-36
lines changed

compiler_base/3rdparty/rustc_data_structures/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustc_data_structures"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2021"
55
authors = ["[email protected]"]
66
license = "Apache-2.0 OR MIT"
@@ -34,7 +34,7 @@ tempfile = "3.5.0"
3434
version = "0.12"
3535

3636
[target.'cfg(windows)'.dependencies]
37-
winapi = { version = "0.3", features = ["fileapi", "psapi", "winerror"] }
37+
winapi = { version = "0.3", features = ["std", "fileapi", "psapi", "winerror"] }
3838

3939
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
4040
memmap2 = "0.2.1"

compiler_base/3rdparty/rustc_data_structures/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1010
#![allow(rustc::default_hash_types)]
11-
#![deny(unaligned_references)]
1211
#![allow(rustc::potential_query_instability)]
1312

1413
extern crate tracing;

compiler_base/3rdparty/rustc_data_structures/src/temp_dir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl Drop for MaybeTempDir {
1616
// occur.
1717
let dir = unsafe { ManuallyDrop::take(&mut self.dir) };
1818
if self.keep {
19-
dir.into_path();
19+
let _ = dir.into_path();
2020
}
2121
}
2222
}

compiler_base/3rdparty/rustc_span/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustc_span"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2021"
55
authors = ["[email protected]"]
66
license = "Apache-2.0 OR MIT"
@@ -15,7 +15,7 @@ categories = ["command-line-utilities"]
1515
doctest = false
1616

1717
[dependencies]
18-
rustc_data_structures = "0.1.1"
18+
rustc_data_structures = "0.1.2"
1919
scoped-tls = "1.0"
2020
unicode-width = "0.1.4"
2121
cfg-if = "0.1.2"

compiler_base/error/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "compiler_base_error"
3-
version = "0.1.5"
3+
version = "0.1.6"
44
edition = "2021"
55
authors = ["[email protected]"]
66
license = "Apache-2.0 OR MIT"
@@ -14,10 +14,10 @@ categories = ["command-line-utilities"]
1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515

1616
[dependencies]
17-
compiler_base_span = "0.1.2"
17+
compiler_base_span = "0.1.3"
1818
compiler_base_macros = "0.1.1"
1919
pretty_assertions = "1.3.0"
20-
rustc_span = "0.1.1"
20+
rustc_span = "0.1.2"
2121
rustc_errors = "0.1.2"
2222
unic-langid = {version="0.9.0", features = ["macros"]}
2323

compiler_base/session/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "compiler_base_session"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
edition = "2021"
55
authors = ["[email protected]"]
66
license = "Apache-2.0 OR MIT"
@@ -15,5 +15,5 @@ categories = ["command-line-utilities"]
1515

1616
[dependencies]
1717
compiler_base_span = "0.1.2"
18-
compiler_base_error = "0.1.5"
18+
compiler_base_error = "0.1.6"
1919
anyhow = "1.0"

compiler_base/span/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "compiler_base_span"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
edition = "2021"
55
authors = ["[email protected]"]
66
license = "Apache-2.0 OR MIT"
@@ -14,4 +14,4 @@ categories = ["command-line-utilities"]
1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515

1616
[dependencies]
17-
rustc_span = "0.1.1"
17+
rustc_span = "0.1.2"

kclvm/Cargo.lock

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

kclvm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ libloading = "0.7.3"
2828
chrono = "0.4.19"
2929
maplit = "1.0.2"
3030
anyhow = { version = "1.0.70", features = ["backtrace"] }
31-
compiler_base_session = "0.1.2"
31+
compiler_base_session = "0.1.3"
3232

3333
kclvm-api = {path = "./api"}
3434
kclvm-cmd = {path = "./cmd"}

kclvm/ast_pretty/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ kclvm-ast = {path = "../ast"}
1212
indexmap = "1.0"
1313
fancy-regex = "0.7.1"
1414
pretty_assertions = "1.3.0"
15-
compiler_base_session = "0.1.2"
15+
compiler_base_session = "0.1.3"
1616
compiler_base_macros = "0.1.1"
1717

1818
[dev-dependencies]

0 commit comments

Comments
 (0)