Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support nightly-2023-01-23 #49

Merged
merged 38 commits into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
b9622d9
fix most import errors
spernsteiner Jun 3, 2022
9d10334
update Machine trait implementation
spernsteiner Jun 4, 2022
5527c57
fix build errors in analyz/mod.rs
spernsteiner Jun 6, 2022
a5809e1
fix build errors in analyz/to_json.rs
spernsteiner Jun 6, 2022
b36fe56
fix build errors in analyz/ty_json.rs
spernsteiner Jun 6, 2022
893c30a
fix remaining build errors in library
spernsteiner Jun 6, 2022
1ab3074
fix build errors in binaries
spernsteiner Jun 6, 2022
636cad6
update code for enumerating MonoItems
spernsteiner Jun 10, 2022
5921066
update cargo integration
spernsteiner Jun 10, 2022
5a592ad
fix some warnings
spernsteiner Jun 10, 2022
9c27e84
be more consistent about erasing late-bound regions
spernsteiner Aug 16, 2022
072df68
remove some has_escaping_bound_vars() checks (may be slow)
spernsteiner Aug 16, 2022
8965006
collect assoc types from supertraits
spernsteiner Aug 16, 2022
8808cac
fix rendering of zero-sized constants
spernsteiner Aug 16, 2022
c13957d
Update compiler plugin to 1.69.0-nightly (5e37043d6 2023-01-22)
m10f Feb 21, 2023
e979aae
More fixes
m10f Mar 4, 2023
92226b4
Merge branch 'rustup-2022-06-02' into rustup-2023-01-23
m10f Mar 4, 2023
79950fe
cleanup
m10f Mar 16, 2023
5d697d5
Update verison numbers in readme
m10f Mar 16, 2023
64c0fc7
Work around #36 for static allocations
RyanGlScott Apr 4, 2023
f9b4e27
Disambiguate static allocation names
RyanGlScott Apr 26, 2023
1d0f2f5
mir-json-callgraph: Remove ty:: hack
RyanGlScott May 1, 2023
a4d0ebe
Merge branch 'master' into rustup-2023-01-23
RyanGlScott May 2, 2023
4a1ff30
Encode enum discriminant types
RyanGlScott May 10, 2023
1b84d71
Compute lengths of &str constants properly
RyanGlScott May 17, 2023
819fa03
Special-case &[T] rendering
RyanGlScott May 16, 2023
0e98828
Render closure constants
RyanGlScott May 24, 2023
3b0f122
Emit function instances for FnPtrs
RyanGlScott May 25, 2023
861d52a
Include types for ThreadLocalRefs
RyanGlScott Jun 1, 2023
a65ab67
Key AllocIntern's map by Tys as well as ConstAllocations
RyanGlScott Jun 2, 2023
a1c2734
mir-json-rustc-wrapper: Emit --sysroot argument
RyanGlScott Jun 29, 2023
fe2f2ba
Don't emit #[test] attribute for AnonConsts
RyanGlScott Jun 29, 2023
7522cd9
Merge branch 'master' into rustup-2023-01-23
RyanGlScott Jul 3, 2023
9f1997e
Docs: use crux::test instead of crux_test
RyanGlScott Jul 7, 2023
1adc931
Apply suggestions from code review
RyanGlScott Jul 13, 2023
be4359a
Inline mk_interp
RyanGlScott Jul 13, 2023
117ec97
Split Dynamic case into Dyn/DynStar subcases
RyanGlScott Jul 13, 2023
11e4d1a
to_json.rs: Remove resolved TO REVIEW comment
RyanGlScott Jul 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,132 changes: 623 additions & 509 deletions Cargo.lock

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ authors = ["Joshua Gancher <jrg358@cornell.edu>"]
repository = "https://github.com/GaloisInc/mir-json.git"
license = "MIT/Apache-2.0"

[package.metadata.rust-analyzer]
rustc_private=true

[dependencies]
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
serde_cbor = "0.11"
tar = "0.4"
cargo_metadata = { version = "0.2" }
cargo = { version = "0.43", features = [ "vendored-openssl" ] }
toml = "0.5"
clap = "2.33"
cargo_metadata = { version = "0.14.2" }
cargo = { version = "0.62", features = [ "vendored-openssl" ] }
toml_edit = { version = "0.13.4", features = [ "easy" ] }
clap = "3.1.0"

[[bin]]
name = "cargo-crux-test"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ book](https://doc.rust-lang.org/book/2018-edition/ch01-01-installation.html)).

2. Next, install a version of `rustc` that works with mir-json.

$ rustup toolchain install nightly-2020-03-22 --force
$ rustup component add --toolchain nightly-2020-03-22 rustc-dev
$ rustup default nightly-2020-03-22
$ rustup toolchain install nightly-2023-01-23 --force
$ rustup component add --toolchain nightly-2023-01-23 rustc-dev
$ rustup default nightly-2023-01-23

<!-- Note: when changing to a new nightly, also update `wrapper.rs` -->

Expand Down
15 changes: 15 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
use std::path::Path;
use std::process::Command;
use std::str;

fn main() {
// Add the toolchain lib/ directory to `-L`. This fixes the linker error "cannot find
// -lLLVM-13-rust-1.60.0-nightly".
let out = Command::new("rustup")
.args(&["which", "rustc"])
.output().unwrap();
assert!(out.status.success());
let rustc_path = Path::new(str::from_utf8(&out.stdout).unwrap().trim_end());
let lib_dir = rustc_path.parent().unwrap().parent().unwrap().join("lib");
println!("cargo:rustc-link-search={}", lib_dir.display());
}
4 changes: 2 additions & 2 deletions doc/rustc.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ internal environment variables, which most users will not need to care about:
overrides should be used.
* `EXPORT_ALL`: If this environment variable is set, then the MIR JSON file
will export all top-level functions. Otherwise, it will only export those
functions with a `#[crux_test]` attribute.
functions with a `#[crux::test]` attribute.

## Other binaries

Expand Down Expand Up @@ -125,7 +125,7 @@ in the following ways:
representation required by the `crux-mir` backend.

* Miscellaneous: `has_attr` for identifying symbolic tests (marked with the
`#[crux_test]` attribute); `all_crate_nums` and related queries to identify
`#[crux::test]` attribute); `all_crate_nums` and related queries to identify
dependencies; `output_filenames` to get the path of the normal `rustc` output
(`mir-json` stores the `.mir` files it generates alongside the normal `.rlib`
library output).
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "nightly-2023-01-23"
Loading