Skip to content

Commit

Permalink
Make Ty::never public
Browse files Browse the repository at this point in the history
Summary: Needed later.

Reviewed By: JakobDegen

Differential Revision: D53980438

fbshipit-source-id: 8d114e2f84a410b6048eae83dac3057cec9ab248
  • Loading branch information
stepancheg authored and facebook-github-bot committed Feb 21, 2024
1 parent 7ec5643 commit add65c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion starlark/src/typing/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ impl Ty {
Ty::basic(TyBasic::Any)
}

pub(crate) const fn never() -> Self {
/// Never type: can hold no value.
pub const fn never() -> Self {
Ty {
alternatives: SmallArcVec1::empty(),
}
Expand Down

0 comments on commit add65c7

Please sign in to comment.