Stream: t-compiler

Topic: mod-rs-paths


Eric Huss (Oct 15 2018 at 21:28, on Zulip):

Is this an ok place to raise a concern about a beta bug?
https://github.com/rust-lang/rust/issues/55094
I'm worried that the release date is very close, and this seems to not be working as intended.

nikomatsakis (Oct 15 2018 at 21:32, on Zulip):

this is a good place for that

nikomatsakis (Oct 15 2018 at 21:34, on Zulip):

I agree this behavior looks wrong

nikomatsakis (Oct 15 2018 at 21:34, on Zulip):

I would expect this code to just not be compileable, full stop

nikomatsakis (Oct 15 2018 at 21:34, on Zulip):

in particular, with an inline module like baz:

pub mod baz {
    pub mod qqq;
}

I don't expect to be able to make non-inline modules like pub mod qqq;

Eric Huss (Oct 15 2018 at 21:35, on Zulip):

because the intermediate module (baz) is not on the filesystem?

nikomatsakis (Oct 15 2018 at 21:35, on Zulip):

but I remember that historically we'd .. permitted some madness here

nikomatsakis (Oct 15 2018 at 21:35, on Zulip):

basically because the code did stuff and we didn't think to test it before Rust 1.0 ;)

nikomatsakis (Oct 15 2018 at 21:36, on Zulip):

so I guess the question requires a bit of review of what the behavior is/was before the non_modrs feature

nikomatsakis (Oct 15 2018 at 21:36, on Zulip):

I'll nominate the issue anyhow

nikomatsakis (Oct 15 2018 at 21:39, on Zulip):

@Eric Huss are you the one that filed the bug?

Eric Huss (Oct 15 2018 at 21:39, on Zulip):

ok, thanks.
no, someone else filed it. I'm interested because I'm writing the docs for that feature.

nikomatsakis (Oct 15 2018 at 21:40, on Zulip):

ok

nikomatsakis (Oct 15 2018 at 21:40, on Zulip):

the behavior does seem strange to me

Last update: Nov 16 2019 at 01:35UTC