aboutsummaryrefslogtreecommitdiffstats
path: root/shape.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-05-20 14:00:14 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-05-20 21:43:30 +0900
commit8d242a33af19672977dcdcb8d32e9ad547bc0141 (patch)
tree3e15a99988ed8b084b6af40c9f94dae33a5082eb /shape.c
parent87217f26f120611d009f1b178d3cc5eaf1b8b515 (diff)
downloadruby-8d242a33af19672977dcdcb8d32e9ad547bc0141.tar.gz
`rb_bug` prints a newline after the message
Diffstat (limited to 'shape.c')
-rw-r--r--shape.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shape.c b/shape.c
index 0a5cdd88ee..dcdb9d28aa 100644
--- a/shape.c
+++ b/shape.c
@@ -122,7 +122,7 @@ shape_alloc(void)
if (shape_id == MAX_SHAPE_ID) {
// TODO: Make an OutOfShapesError ??
- rb_bug("Out of shapes\n");
+ rb_bug("Out of shapes");
}
return &GET_SHAPE_TREE()->shape_list[shape_id];
@@ -451,7 +451,7 @@ rb_shape_get_iv_index(rb_shape_t * shape, ID id, attr_index_t *value)
return false;
case SHAPE_OBJ_TOO_COMPLEX:
case SHAPE_FROZEN:
- rb_bug("Ivar should not exist on transition\n");
+ rb_bug("Ivar should not exist on transition");
}
}
shape = rb_shape_get_parent(shape);
@@ -516,7 +516,7 @@ rb_shape_traverse_from_new_root(rb_shape_t *initial_shape, rb_shape_t *dest_shap
case SHAPE_T_OBJECT:
break;
case SHAPE_OBJ_TOO_COMPLEX:
- rb_bug("Unreachable\n");
+ rb_bug("Unreachable");
break;
}
@@ -553,7 +553,7 @@ rb_shape_rebuild_shape(rb_shape_t * initial_shape, rb_shape_t * dest_shape)
case SHAPE_T_OBJECT:
break;
case SHAPE_OBJ_TOO_COMPLEX:
- rb_bug("Unreachable\n");
+ rb_bug("Unreachable");
break;
}