Skip to content

Remove (more) dependencies on TypeContents#20159

Closed
nikomatsakis wants to merge 4 commits into
rust-lang:masterfrom
nikomatsakis:die-typecontents-die
Closed

Remove (more) dependencies on TypeContents#20159
nikomatsakis wants to merge 4 commits into
rust-lang:masterfrom
nikomatsakis:die-typecontents-die

Conversation

@nikomatsakis

Copy link
Copy Markdown
Contributor

Currently we use TypeContents to determine whether types are sized. This is not good because TypeContents cannot take the parameter environment into account and thus cannot handle where clauses.

This patch removes most of those uses and instead uses the trait resolution infrastructure. This means that we can handle context-dependent where clauses. TypeContents is still used in trans (possibly this should be removed in a later refactor, actually).

r? @nick29581

@nikomatsakis

Copy link
Copy Markdown
Contributor Author

cc @jroesch

@jroesch

jroesch commented Dec 23, 2014

Copy link
Copy Markdown
Contributor

Looks good to me. This appears to resolve the earlier issues I was having with TypeContents and where clauses.

@nrc

nrc commented Dec 23, 2014

Copy link
Copy Markdown
Member

r=me with the various nits fixed

@nikomatsakis

Copy link
Copy Markdown
Contributor Author

@brson @alexcrichton any idea what this is? (from win32 bot)

note: C:/program files (x86)/mingw-w64/i686-4.9.1-win32-dwarf-rt_v3-rev1/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot open output file i686-pc-windows-gnu\test\run-pass\unwind-resource.stage2-i686-pc-windows-gnu.exe: Permission denied

@alexcrichton

Copy link
Copy Markdown
Member

Sadly yes, that means that the previous instance of the program never actually died and will prevent all future test runs on the bots from succeeding. The only fix I know of is to remote into the bot and kill the process manually (should be better now).

@nikomatsakis

Copy link
Copy Markdown
Contributor Author

Closing in favor of #20307

lnicola pushed a commit to lnicola/rust that referenced this pull request Jul 7, 2025
Always couple `--compile-time-deps` with
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants