Skip to content

Commit

Permalink
fix details
Browse files Browse the repository at this point in the history
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
  • Loading branch information
martinvuyk committed Nov 28, 2024
1 parent 36314cd commit bb8177e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
1 change: 0 additions & 1 deletion stdlib/src/builtin/sort.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
These are Mojo built-ins, so you don't need to import them.
"""

from builtin.builtin_list import _lit_mut_cast
from collections import List
from sys import bitwidthof
from math import ceil
Expand Down
9 changes: 1 addition & 8 deletions stdlib/src/builtin/type_aliases.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,7 @@ alias OriginSet = __mlir_type.`!lit.origin.set`
"""A set of origin parameters."""


struct _origin_inner[is_mutable: Bool, //]:
alias type = __mlir_type[
`!lit.origin<`,
is_mutable.value,
`>`,
]


@value
@register_passable("trivial")
struct Origin[is_mutable: Bool]:
"""This represents a origin reference for a memory value.
Expand Down
10 changes: 0 additions & 10 deletions stdlib/src/utils/span.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -382,13 +382,3 @@ struct Span[
"""
for element in self:
element[] = value

fn get_immutable(self) -> Span[T, _lit_mut_cast[origin, False].result]:
"""
Return an immutable version of this span.
Returns:
A span covering the same elements, but without mutability.
"""
return Span[T, _lit_mut_cast[origin, False].result](
ptr=self._data, length=self._len
)

0 comments on commit bb8177e

Please sign in to comment.