Skip to content

Conversation

@pnkfelix
Copy link
Contributor

Fix #10031.

@bors bors closed this Jan 28, 2014
@bors bors merged commit b315aba into rust-lang:master Jan 28, 2014
flip1995 pushed a commit to flip1995/rust that referenced this pull request Dec 16, 2023
…r=flip1995

uninhabited_reference: new lint

Close rust-lang#11851

The lint is implemented on function parameters and return types, as this is the place where the risk of exchanging references to uninhabited types is the highest. Other constructs, such as in a local variable,
would require the use of `unsafe` and will clearly be done on purpose.

changelog: [`uninhabited_reference`]: new lint
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.

Getting "error: mismatched types: expected std::result::Result<(BUG[0u],uint),~str>..."

3 participants