Skip to content

Commit

Permalink
TODO -> FIXME
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Feb 24, 2021
1 parent e604d01 commit 69cde44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_ast_lowering/src/lib.rs
Expand Up @@ -2831,7 +2831,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {

fn item_attrs(&self, def_id: DefId) -> Vec<ast::Attribute> {
if let Some(_local_def_id) = def_id.as_local() {
// TODO: This doesn't actually work, items doesn't include everything?
// FIXME: This doesn't actually work, items doesn't include everything?
//self.items[&hir::ItemId { def_id: local_def_id }].attrs.into()
Vec::new()
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/legacy-const-generics.rs
Expand Up @@ -13,6 +13,6 @@ pub fn bar<const Y: usize>(x: usize, z: usize) -> [usize; 3] {
fn main() {
assert_eq!(legacy_const_generics::foo(0 + 0, 1 + 1, 2 + 2), [0, 2, 4]);
assert_eq!(legacy_const_generics::foo::<{1 + 1}>(0 + 0, 2 + 2), [0, 2, 4]);
// TODO: Only works cross-crate
// FIXME: Only works cross-crate
//assert_eq!(bar(0, 1, 2), [0, 1, 2]);
}

0 comments on commit 69cde44

Please sign in to comment.