This seems like a rather elementary question but it has been causing me some troubles.
Suppose I want to construct a unit system were $c = 1$ and $\hbar = 1$.
The constraint $c = 3 \times 10^ 8 m/s= 1$ implies $1 s = 3 \times 10^8m$.
Similarly we impose $\hbar = 1.05 \times 10^{-34} kg\cdot m^2 /s = 1$. This constraint, along with $c = 1$, implies
$$1 = 1.05 \times 10^{-34} kg\cdot m^2 /s = 1.05 \times 10^{-34} kg\cdot (3\times 10^8)^{-2} m^2 / s = 1.17 \times 10^{-51} kg\cdot m^2/s\\ \implies 1s = 1.17 \times 10^{-51} kg\cdot m^2.$$
The book I am using (QFT for Mathematicians by Folland) says that under this system of units:
$$1~s \cong 299792458 ~m \cong 8.522668 \times 10^{50} ~kg^{-1}$$
so it seems I have my numbers right. What has been bothering me is the units. More specifically, how does
$$1s = 1.17 \times 10^{-51} kg\cdot m^2 \implies 1s \cong 8.522668 \times 10^{50} ~kg^{-1}?$$
How does the $m^2$ disappear? My guess is that from the relation $c = 1$ we conclude that $[L] = [T]$ and so
$$1s = 1.17 \times 10^{-51} kg\cdot m^2 = 1.17 \times 10^{-51} kg\cdot s^2\\ \implies \big(1.17 \times 10^{-51}\big)^{-1} kg^{-1} = 8.52 \times 10^{50} ~kg^{-1} = 1~s. $$
But how does it physically make sense to say that $[L] = [T]$? Even with the condition $c = 1$ we still must have units on $c$ right? Put differently, how is it allowed to take $c$ to be a unitless number? If we take 1 $m_c$ (where $m_c$ denotes meters in this new unit system) to be $3 \times 10^8 m$ so that $c = 3 \times 10^8 m / s$, we still would have $c = m_c/s$, and not unitless.