]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ty_utils/src/consts.rs
Fix overlapping impls
[rust.git] / compiler / rustc_ty_utils / src / consts.rs
index 80957d644652a65686dbfa22e7e01b88d12392aa..7c2f4db94ff7269e7c60fd9bf9bf7db7d62bda11 100644 (file)
@@ -218,7 +218,7 @@ fn check_unop(op: mir::UnOp) -> bool {
     /// Builds the abstract const by walking the thir and bailing out when
     /// encountering an unsupported operation.
     pub fn build(mut self) -> Result<&'tcx [Node<'tcx>], ErrorGuaranteed> {
-        debug!("Abstractconstbuilder::build: body={:?}", &*self.body);
+        debug!("AbstractConstBuilder::build: body={:?}", &*self.body);
         self.recurse_build(self.body_id)?;
 
         for n in self.nodes.iter() {
@@ -331,7 +331,7 @@ fn recurse_build(&mut self, node: thir::ExprId) -> Result<NodeId, ErrorGuarantee
                 // Skip reborrows for now until we allow Deref/Borrow/AddressOf
                 // expressions.
                 // FIXME(generic_const_exprs): Verify/explain why this is sound
-                if let ExprKind::Deref {arg} = arg_node.kind {
+                if let ExprKind::Deref { arg } = arg_node.kind {
                     self.recurse_build(arg)?
                 } else {
                     self.maybe_supported_error(