Skip to content

Commit 2a51ec4

Browse files
committed
remove unresolved function
1 parent 14820e4 commit 2a51ec4

File tree

2 files changed

+0
-130
lines changed

2 files changed

+0
-130
lines changed

CHANGELOG.md

Lines changed: 0 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -26,118 +26,7 @@
2626
- The compiler now correctly tracks the minimum required version for expressions
2727
in `BitArray`s' `size` option to be `>= 1.12.0`.
2828
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
29-
- Fixed two bugs that made gleam not update the manifest correctly, causing
30-
it to hit hex for version resolution on every operation and quickly reach
31-
request limits in large projects.
32-
([fruno](https://github.com/fruno-bulax/))
3329

34-
- Fixed a bug where renaming a variable from an alternative pattern would not
35-
rename all its occurrences.
36-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
37-
38-
- The compiler now reports an error for literal floats that are outside the
39-
floating point representable range on both targets. Previously it would only
40-
do that when compiling on the Erlang target.
41-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
42-
43-
- Fixed a typo in the error message emitted when trying to run a module that
44-
does not have a main function.
45-
([Louis Pilfold](https://github.com/lpil))
46-
47-
- Fixed a bug where the "Generate function" code action would be incorrectly
48-
offered when calling a function unsupported by the current target, leading to
49-
invalid code if the code action was accepted.
50-
([Surya Rose](https://github.com/GearsDatapacks))
51-
52-
- Fixed a bug where the formatter would not remove the right number of double
53-
negations from literal integers.
54-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
55-
56-
- Fixed a typo for the "Invalid number of patterns" error.
57-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
58-
59-
- Fixed a stack overflow when type checking some case expressions with
60-
thousands of branches.
61-
([fruno](https://github.com/fruno-bulax/))
62-
63-
- The "add omitted label" code action no longer adds labels to arguments
64-
being piped in or the callbacks of `use`.
65-
([fruno](https://github.com/fruno-bulax))
66-
67-
- Fixed a bug that caused the compiler to incorrectly optimise away runtime
68-
size checks in bit array patterns on the javascript target if they used
69-
calculations in the size of a segment (`_:size(wibble - wobble)`).
70-
([fruno](https://github.com/fruno-bulax/))
71-
72-
- Add a missing BitArray constructor return type in the prelude's TypeScript
73-
definitions.
74-
([Richard Viney](https://github.com/richard-viney))
75-
76-
- Fixed a bug where the BEAM would be shut down abruptly once the program had
77-
successfully finished running.
78-
([Louis Pilfold](https://github.com/lpil))
79-
80-
- Fixed a bug where the "pattern match on variable" code action would generate
81-
invalid code when applied on a list's tail.
82-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
83-
84-
- Fixed a bug where the "pattern match on variable" code action would generate
85-
invalid patterns by repeating a variable name already used in the same
86-
pattern.
87-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
88-
89-
- Fixed a bug where the "generate function" code action would pop up for
90-
variants.
91-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
92-
93-
- Fixed a bug where useless comparison warnings for floats compared literal
94-
strings, claiming for example that `1.0 == 1.` was always false.
95-
([fruno](https://github.com/fruno-bulax/))
96-
97-
- Fixed a bug where pattern variables in case clause guards would incorrectly
98-
shadow outer scope variables in other branches when compiling to JavaScript.
99-
([Elias Haider](https://github.com/EliasDerHai))
100-
101-
- Fix invalid TypeScript definition being generated for variant constructors
102-
with long names that take no arguments.
103-
([Richard Viney](https://github.com/richard-viney))
104-
105-
- Fixed a bug where the formatter would remove the `@deprecated` attribute from
106-
constants.
107-
([Surya Rose](https://github.com/GearsDatapacks))
108-
109-
- Fixed a bug where invalid code would be generated on the JavaScript target in
110-
cases where an underscore followed the decimal point in a float literal.
111-
([Patrick Dewey](https://github.com/ptdewey))
112-
113-
- Typos in the error message shown when trying to install a non-existent package
114-
have been fixed.
115-
([Ioan Clarke](https://github.com/ioanclarke))
116-
117-
- Fixed a bug where the compiler would generate invalid Erlang and TypeScript
118-
code for unused opaque types referencing private types.
119-
([Surya Rose](https://github.com/GearsDatapacks))
120-
121-
- Fixed a bug where the type checker would allow invalid programs when a large
122-
group of functions were all mutually recursive.
123-
([Surya Rose](https://github.com/GearsDatapacks))
124-
125-
- The compiler now provides a clearer error message when a function's return type
126-
is mistakenly declared using `:` instead of `->`.
127-
([Gurvir Singh](https://github.com/baraich))
128-
129-
- Fixed a bug where the data generated for searching documentation was in the
130-
wrong format, preventing it from being used by Hexdocs search.
131-
([Surya Rose](https://github.com/GearsDatapacks))
132-
133-
- Fixed a bug where the "collapse nested case" code action would produce invalid
134-
code on a list tail pattern.
135-
([Matias Carlander](https://github.com/matiascr))
136-
137-
- Fixed two bugs that made gleam not update the manifest correctly, causing
138-
it to hit hex for version resolution on every operation and quickly reach
139-
request limits in large projects.
140-
([fruno](https://github.com/fruno-bulax/))
14130
- Added an error message when attempting to update packages that are not dependencies
14231
of the project, instead of failing silently.
14332
([Etienne Boutet](https://github.com/EtienneBoutet)) and ([Vladislav Shakitskiy](https://github.com/vshakitskiy))

compiler-cli/src/dependencies/dependency_manager.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -141,25 +141,6 @@ where
141141
Ok(resolved)
142142
}
143143

144-
fn ensure_packages_exist_locally(
145-
&self,
146-
manifest: &Manifest,
147-
packages: Vec<EcoString>,
148-
) -> Result<()> {
149-
let missing_packages: Vec<String> = packages
150-
.iter()
151-
.filter(|package_name| !manifest.packages.iter().any(|p| &p.name == *package_name))
152-
.map(|eco| eco.to_string())
153-
.collect();
154-
155-
if !missing_packages.is_empty() {
156-
return Err(Error::PackagesToUpdateNotExist {
157-
packages: missing_packages,
158-
});
159-
}
160-
Ok(())
161-
}
162-
163144
pub fn resolve_and_download_versions(
164145
&self,
165146
paths: &ProjectPaths,

0 commit comments

Comments
 (0)