These are chat archives for rust-lang/rust

18th
Oct 2017
Greg Shuflin
@neunenak
Oct 18 2017 07:25
I'm trying to compile rustc and having some trouble
I'm running ./x.py build --stage 1 and getting a bunch of errors pertaining to libproc_macro-6210e4b46662ec28.so: cannot open shared object file: No such file or directory
the problem seems to be in my ~/.cargo/registery, but I'm afraid to wipe anything out because this is my first compile and it took like an hour
Alyani
@notsonotso
Oct 18 2017 12:27
@steveklabnik cargo-check 13 seconds, build 18 seconds
Mark Simulacrum
@Mark-Simulacrum
Oct 18 2017 13:03
@neunenak If you pass src/librustc or something more specific it should work -- a recent PR introduced that failure.
(it has to do with proc macros not working until stage 2)
Steve Klabnik
@steveklabnik
Oct 18 2017 13:26
@notsonotso iiiinteresting
Alyani
@notsonotso
Oct 18 2017 13:36
yeah?
Steve Klabnik
@steveklabnik
Oct 18 2017 14:14
i'd expect more
that's all
i mean, that's still five seconds
Rui Azevedo
@neu-rah
Oct 18 2017 14:26
whats the state of using constants in templates? found some stuff
https://internals.rust-lang.org/t/pre-rfc-integer-templating/2974/10
rust-lang/rfcs#1062
is it already possible? or there are other ways of achieving it? was it abandoned?
Steve Klabnik
@steveklabnik
Oct 18 2017 14:27
by "templates" you mean "generics", right?
Rui Azevedo
@neu-rah
Oct 18 2017 14:27
yes
was accepted
Rui Azevedo
@neu-rah
Oct 18 2017 14:28
good thing
Steve Klabnik
@steveklabnik
Oct 18 2017 14:28
pre-requisite implementation work is underway
Rui Azevedo
@neu-rah
Oct 18 2017 14:28
they are very important
Rui Azevedo
@neu-rah
Oct 18 2017 14:48
end of 2017, can hardly wait
Fra ns
@snarf95_twitter
Oct 18 2017 17:14
I'm dealing with printing unicode characters to screen like ♖ it only works when i run the directly inside the vscode terminal but when i open a seperate cmd.exe or powershell and run the same it simply becomes a block like [] any idea why?
TatriX
@TatriX
Oct 18 2017 17:22
Different font?
Fra ns
@snarf95_twitter
Oct 18 2017 17:25
"❤️" becomes "[][]"
but when run from vscode integrated terminal (which is basically just a powershell) it somehow works ?
Andrey Lesnikov
@ozkriff
Oct 18 2017 17:30
Fra ns
@snarf95_twitter
Oct 18 2017 17:32
Hmm I'm running from a seperate powershell window and it still prints those weird blocky characters
using chcp 65001 as default
Andrey Lesnikov
@ozkriff
Oct 18 2017 17:33
and what is the font?
Fra ns
@snarf95_twitter
Oct 18 2017 17:35
Font? I’m running en-US culture
Rui Azevedo
@neu-rah
Oct 18 2017 17:43
about match: is there a way of reusing a match case from another in the same match block? similar to the c++ absence of break in switch/case
Steve Klabnik
@steveklabnik
Oct 18 2017 17:43
not really, as if you'd matched on the case before, you'd never hit the second case
you can use | to do an "or" for conditions
which would sorta give you the break-less behavior
Rui Azevedo
@neu-rah
Oct 18 2017 17:44
sort of, but not quite
ok, maybe i can do it with a chain of if's
Fra ns
@snarf95_twitter
Oct 18 2017 18:00
.. so any idea what to do about this unicode issue with dedicated Powershell?
Andrey Lesnikov
@ozkriff
Oct 18 2017 18:06
en-US culture? I'm talking about these fonts: https://i.stack.imgur.com/2aCx0.jpg Is Lucida selected?
Fra ns
@snarf95_twitter
Oct 18 2017 18:10
Oh yea that’s probably why. Kinda weird why the standard font of Powershell isn’t able to handle these chars.
Fra ns
@snarf95_twitter
Oct 18 2017 19:00
weird how Lucida Console doesn't work but the other fonts do...
Typical Micro$$$oft
Roman Proskuryakov
@kpp
Oct 18 2017 22:17
Hello. I have seen many examples of tokio Codec using nom to parse streams. What's the best choice to gen raw byte data?