Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ jobs:

- name: Install the libraries needed to build librsvg
if: ${{ contains(matrix.commands, '--projects') }}
run: sudo apt-get install libcairo2-dev libpango1.0-dev libfontconfig1-dev libfreetype-dev libharfbuzz-dev libxml2-dev libglib2.0-dev
# The runner image's package index can be stale.
run: |
sudo apt-get update
sudo apt-get install libcairo2-dev libpango1.0-dev libfontconfig1-dev libfreetype-dev libharfbuzz-dev libxml2-dev libglib2.0-dev

- name: Download artifact
run: curl -LO https://github.com/rust-lang/gcc/releases/latest/download/${{ matrix.libgccjit_version.gcc }}
Expand Down
12 changes: 9 additions & 3 deletions build_system/asm-tester/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@ impl Config {
}
}
"--" => {
config.rustc_flags.extend(&mut args);
// Nothing else to be read but the `break` makes it more clear.
break;
// compiletest passes its own `--out-dir` to auxiliary builds, and rustc
// rejects a second one.
while let Some(arg) = args.next() {
if arg == "--out-dir" {
args.next();
} else {
config.rustc_flags.push(arg);
}
}
}
arg => return Err(format!("Unknown argument {arg:?}")),
}
Expand Down
9 changes: 9 additions & 0 deletions example/mini_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,15 @@ unsafe impl<T: PointeeSized> Freeze for *mut T {}
unsafe impl<T: PointeeSized> Freeze for &T {}
unsafe impl<T: PointeeSized> Freeze for &mut T {}

#[lang = "unsafe_unpin"]
pub unsafe auto trait UnsafeUnpin {}

unsafe impl<T: PointeeSized> UnsafeUnpin for PhantomData<T> {}
unsafe impl<T: PointeeSized> UnsafeUnpin for *const T {}
unsafe impl<T: PointeeSized> UnsafeUnpin for *mut T {}
unsafe impl<T: PointeeSized> UnsafeUnpin for &T {}
unsafe impl<T: PointeeSized> UnsafeUnpin for &mut T {}

#[lang = "structural_peq"]
pub trait StructuralPartialEq {}

Expand Down
Loading
Loading