Closed
Description
I tried this code:
struct Foo {
#[inline]
bar: String,
}
I expected to see this happen: Failing complilation.
Instead, this happened: Compilation success.
Meta
rustc --version --verbose
:
rustc 1.49.0-beta.4 (877c7cbe1 2020-12-10)
binary: rustc
commit-hash: 877c7cbe142a373f93d38a23741dcc3a0a17a2af
commit-date: 2020-12-10
host: x86_64-apple-darwin
release: 1.49.0-beta.4
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ehuss commentedon Dec 31, 2020
Some validation was added in #73461, but it looks like there are a few places that are missing. The ones I can see are struct fields, match arms, and macro definitions:
I believe that
CheckAttrVisitor
needs to include visitor methods forvisit_arm
andvisit_struct_field
andvisit_macro_def
.Danue1 commentedon Jan 2, 2021
Hmm, I think I can do it, so I'll try it.
Auto merge of rust-lang#80641 - Danue1:patch-1, r=oli-obk
Danue1 commentedon Feb 2, 2021
solved!
ices/95151.rs: fixed with no errors
naked_functions
#134213