mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 00:04:11 +00:00
Format fixes
This commit is contained in:
parent
17523e06d7
commit
94a752d9db
@ -1159,10 +1159,7 @@ impl<'cx, 'tcx> Builder<'cx, 'tcx> {
|
||||
Some(Token::Placeholder(_, span)) => {
|
||||
self.tcx.sess.span_err(
|
||||
span,
|
||||
format!(
|
||||
"expected a literal, not a dynamic value for a {:?}",
|
||||
kind
|
||||
),
|
||||
format!("expected a literal, not a dynamic value for a {:?}", kind),
|
||||
);
|
||||
}
|
||||
Some(Token::Typeof(_, span, _)) => {
|
||||
|
@ -249,10 +249,10 @@ impl<'tcx> BaseTypeMethods<'tcx> for CodegenCx<'tcx> {
|
||||
fn vector_length(&self, ty: Self::Type) -> usize {
|
||||
match self.lookup_type(ty) {
|
||||
SpirvType::Vector { count, .. } => count as usize,
|
||||
ty => self.tcx.sess.fatal(format!(
|
||||
"vector_length called on non-vector type: {:?}",
|
||||
ty
|
||||
)),
|
||||
ty => self
|
||||
.tcx
|
||||
.sess
|
||||
.fatal(format!("vector_length called on non-vector type: {:?}", ty)),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user