Skip to content

Commit 891eed6

Browse files
committed
misc cleanups
1 parent f2d1f0c commit 891eed6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/rustc_codegen_spirv/src/builder/intrinsics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl<'a, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'tcx> {
122122

123123
sym::saturating_add => {
124124
assert_eq!(arg_tys[0], arg_tys[1]);
125-
let result = match &arg_tys[0].kind() {
125+
let result = match arg_tys[0].kind() {
126126
TyKind::Int(_) | TyKind::Uint(_) => {
127127
self.add(args[0].immediate(), args[1].immediate())
128128
}

crates/rustc_codegen_spirv/src/codegen_cx/constant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ impl<'tcx> CodegenCx<'tcx> {
437437
// println!(
438438
// "Creating const alloc of type {} with {} bytes",
439439
// self.debug_type(ty),
440-
// alloc.len()
440+
// alloc.inner().len()
441441
// );
442442
let mut offset = Size::ZERO;
443443
let result = self.read_from_const_alloc(alloc, &mut offset, ty);

tests/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ whether it should succeed compilation, or fail. If it is expected to fail, there
99
The `src` folder here is the tool that iterates over every file in the `ui` folder. It uses the
1010
`compiletests` library, taken from rustc's own compiletest framework.
1111

12-
You can run compiletests via `cargo compiletests`. This is an alias set up in `.cargo/config` for
12+
You can run compiletests via `cargo compiletest`. This is an alias set up in `.cargo/config` for
1313
`cargo run --release -p compiletests --`. You can filter to run specific tests by passing the
14-
(partial) filenames to `cargo compiletests some_file_name`, and update the `.stderr` files to
14+
(partial) filenames to `cargo compiletest some_file_name`, and update the `.stderr` files to
1515
contain new output via the `--bless` flag (with `--bless`, make sure you're actually supposed to be
1616
changing the .stderr files due to an intentional change, and hand-validate the output is correct
1717
afterwards).

0 commit comments

Comments
 (0)