Skip to content

Commit

Permalink
chore: add support for rustc 1.78
Browse files Browse the repository at this point in the history
  • Loading branch information
godzie44 committed May 2, 2024
1 parent b9a1028 commit 49c9a26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
on: [push, pull_request]
on: [ push, pull_request ]

name: CI

jobs:
test:
strategy:
matrix:
rustc_version: [ 1.75.0, 1.76.0, 1.77.0 ]
rustc_version: [ 1.75.0, 1.76.0, 1.77.0, 1.78.0 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- 1.75
- 1.76
- 1.77
- 1.78

---

Expand Down
3 changes: 2 additions & 1 deletion src/debugger/variable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,8 @@ impl<'a> VariableParser<'a> {
let is_tls_type = version_switch!(
rust_version,
(1, 0, 0) ..= (1, 76, u32::MAX) => type_ns_h.contains(&["std", "sys", "common", "thread_local", "fast_local"]),
(1, 77, 0) ..= (1, u32::MAX, u32::MAX) => type_ns_h.contains(&["std", "sys", "pal", "common", "thread_local", "fast_local"])
(1, 77, 0) ..= (1, 77, u32::MAX) => type_ns_h.contains(&["std", "sys", "pal", "common", "thread_local", "fast_local"]),
(1, 78, 0) ..= (1, u32::MAX, u32::MAX) => type_ns_h.contains(&["std", "sys", "thread_local", "fast_local"]),
);
if is_tls_type == Some(true) {
return VariableIR::Specialized(parser_ext.parse_tls(struct_var, type_params));
Expand Down

0 comments on commit 49c9a26

Please sign in to comment.