Skip to content

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Jun 18, 2021

Closes #6939

@Veykril
Copy link
Member Author

Veykril commented Jun 18, 2021

Tests for this live in the auto-import assist for now as I'll have to change up the insert_use tests a bit first. Will get to that tomorrow.

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 18, 2021

@bors bors bot merged commit 0d3bad8 into rust-lang:master Jun 18, 2021
@Veykril Veykril deleted the attr-insert-use branch June 18, 2021 22:05
@matklad
Copy link
Contributor

matklad commented Aug 26, 2021

@Veykril could you create an issue (or a PR) to fix this for #[test] functions, who are implemitly #[cfg(test)] ?

@Veykril
Copy link
Member Author

Veykril commented Aug 26, 2021

Opened an issue #10040

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.

Imports inserted via Auto-import should inherit Cfg-Attributes
2 participants