!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

837 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.180 Servers

Load older messages


SenderMessageTime
29 Aug 2025
@Ericson2314:matrix.orgJohn Ericsonubsan23:41:27
@fzakaria:one.ems.hostfzakariaoh you went back to string_view23:41:29
@Ericson2314:matrix.orgJohn Ericson Sergei Zimmerman (xokdvium): is loking 23:41:34
@fzakaria:one.ems.hostfzakariayea that's bad, clangd is giving me the warning23:41:39
@fzakaria:one.ems.hostfzakariawait is it...23:41:48
@fzakaria:one.ems.hostfzakaria

Clang-Tidy: Std::move of the const variable 'path' of the trivially-copyable type 'const std::basic_string_view<char>' has no effect; remove std::move()

23:41:51
@fzakaria:one.ems.hostfzakariai get bitten too much by rvalue and string_view... i thought it was such a cool feature23:42:35
@fzakaria:one.ems.hostfzakariaand now i ignore it23:42:38
@Ericson2314:matrix.orgJohn Ericsonyeah the std::move can go goes it's trivially coppiable23:42:57
@fzakaria:one.ems.hostfzakariai learned about some hack that the compiler does for rvalues that are also created as function variables to make their lifetime expended.23:43:01
@fzakaria:one.ems.hostfzakariaexpanded*23:43:13
@fzakaria:one.ems.hostfzakariai see this23:43:32
@fzakaria:one.ems.hostfzakaria

Clang-Tidy: Std::basic_string_view outlives its value

23:43:33
@fzakaria:one.ems.hostfzakaria

Clangd: Object backing the pointer 'modifiedUrl' will be destroyed at the end of the full-expression

23:43:43
@Ericson2314:matrix.orgJohn Ericsonah yeah23:44:04
@Ericson2314:matrix.orgJohn EricsonI only did one of the two path prefix thinggies23:44:12
@Ericson2314:matrix.orgJohn EricsonI didn't see the other23:44:14
@fzakaria:one.ems.hostfzakariawhy did you chang eit to push back empty string?23:44:50
@fzakaria:one.ems.hostfzakaria

path.emplace_back("");

23:44:52
@fzakaria:one.ems.hostfzakaria(it was pushing back forward slash before)23:45:14
@Ericson2314:matrix.orgJohn Ericsongive it a pull23:48:56
@fzakaria:one.ems.hostfzakariaoh i was gonan land them ;P23:49:11
@Ericson2314:matrix.orgJohn Ericsonoh sorry23:49:22
@Ericson2314:matrix.orgJohn EricsonI did that because the initial "" makes an initial /23:49:33
@Ericson2314:matrix.orgJohn EricsonI get a test failure now23:49:56
@Ericson2314:matrix.orgJohn Ericsonbut at least local and CI should agree23:50:00
@fzakaria:one.ems.hostfzakariafrom what ?23:51:22
@fzakaria:one.ems.hostfzakariai thin kits from the new try23:52:39
@fzakaria:one.ems.hostfzakariaparseURL actually parses scp like...23:52:50
@fzakaria:one.ems.hostfzakariathat's why i had the if guard23:52:54

Show newer messages


Back to Room ListRoom Version: 6